]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/sha1.h
1 #ifndef UTIL_LINUX_SHA1_H
2 #define UTIL_LINUX_SHA1_H
6 By Steve Reid <steve@edmweb.com>
12 #define UL_SHA1LENGTH 20
18 unsigned char buffer
[64];
21 void ul_SHA1Transform(uint32_t state
[5], const unsigned char buffer
[64]);
22 void ul_SHA1Init(UL_SHA1_CTX
*context
);
23 void ul_SHA1Update(UL_SHA1_CTX
*context
, const unsigned char *data
, uint32_t len
);
24 void ul_SHA1Final(unsigned char digest
[UL_SHA1LENGTH
], UL_SHA1_CTX
*context
);
25 void ul_SHA1(char *hash_out
, const char *str
, unsigned len
);
27 #endif /* UTIL_LINUX_SHA1_H */