libtools
Main Page
Modules
Classes
Files
File List
File Members
tools
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 */
sha1_t
uint8_t sha1_t[SHA_DIGEST_LENGTH]
variable type for storing SHA1 hash
Definition:
sha1.h:35
sha1_file
int sha1_file(const char *path, sha1_t *hash)
calculate SHA1 hash for specified file
Generated by
1.8.11