libtools
sha1.h
Go to the documentation of this file.
1 
20 #ifndef __TOOLS_SHA1_H
21 #define __TOOLS_SHA1_H
22 
23 #include <openssl/sha.h>
24 
32 #define SHA1_STRING_LENGTH (SHA_DIGEST_LENGTH * 2 + 1)
33 
35 typedef uint8_t sha1_t[SHA_DIGEST_LENGTH];
36 
44 int sha1_file(const char *path, sha1_t *hash);
45 
48 #endif /* __TOOLS_SHA1_H */
uint8_t sha1_t[SHA_DIGEST_LENGTH]
variable type for storing SHA1 hash
Definition: sha1.h:35
int sha1_file(const char *path, sha1_t *hash)
calculate SHA1 hash for specified file