13 #ifndef _ValidateFile_hpp_ 14 #define _ValidateFile_hpp_ 16 #define VFILE_HASH_CHUNK_SIZE (256) 22 namespace ValidateFile {
File doesn't exist (for read)
No permission to read/write file.
A catch-all for other errors. Have to look in implementation-specific code.
Validation file doesn't exist (for read)
The validation of the file passed.
Status validate(const char *fileName, const char *hashFileName, Utils::HashBuffer &hashBuffer)
Validate the contents of a file 'fileName' against its hash.
Status createValidation(const char *fileName, const char *hash, Utils::HashBuffer &hashBuffer)
No space left on the device for writing.
No permission to read/write file.
A container class for holding a hash buffer.
The validation of the file did not pass.