move file integrity checks from fuse/filecache to utils/hash

This commit is contained in:
josch
2014-12-02 07:10:07 +01:00
parent 2f2ce91597
commit 58e8e89771
3 changed files with 98 additions and 98 deletions

View File

@@ -24,5 +24,10 @@ int calc_sha256(FILE * file, unsigned char *hash);
int base36_decode_triplet(const char *key);
void hex2binary(const char *hex, unsigned char *binary);
char *binary2hex(const unsigned char *binary, size_t length);
int file_check_integrity(const char *path, uint64_t fsize,
const unsigned char *fhash);
int file_check_integrity_size(const char *path, uint64_t fsize);
int file_check_integrity_hash(const char *path,
const unsigned char *fhash);
#endif