Go to the source code of this file.
Variables | |
const char | CONTROL_STR [] = "ABCDEFGHIJKLMNOPQRSTUVW" |
The control string for the file header. | |
const char | RECOG_STR [] = "YAPET1.0" |
The recognition string. |
const char CONTROL_STR[] = "ABCDEFGHIJKLMNOPQRSTUVW" |
This is the control string used for the file header to verify the decryption of the header. It is stored in the file header. When the key is verified, the header is read and this string is compared to the one stored in the file header. If they don't match, the class assumes the key provided is invalid.
Definition at line 88 of file file.cc.
Referenced by YAPET::File::initFile(), and YAPET::File::validateKey().
const char RECOG_STR[] = "YAPET1.0" |
The recognition string is saved plain-text at the very beginning of each file. When files are opened, the methods check for the existence of this string. If this string is not found, the methods report an unknown file.
Definition at line 98 of file file.cc.
Referenced by YAPET::File::readHeader(), YAPET::File::seekDataSection(), and YAPET::File::writeHeader().