]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/md5.h
libmount: fix comment referring to passno field
[thirdparty/util-linux.git] / include / md5.h
1 #ifndef UTIL_LINUX_MD5_H
2 #define UTIL_LINUX_MD5_H
3
4 #include <stdint.h>
5
6 #define UL_MD5LENGTH 16
7
8 struct UL_MD5Context {
9 uint32_t buf[4];
10 uint32_t bits[2];
11 unsigned char in[64];
12 };
13
14 void ul_MD5Init(struct UL_MD5Context *context);
15 void ul_MD5Update(struct UL_MD5Context *context, unsigned char const *buf, unsigned len);
16 void ul_MD5Final(unsigned char digest[UL_MD5LENGTH], struct UL_MD5Context *context);
17 void ul_MD5Transform(uint32_t buf[4], uint32_t const in[16]);
18
19 /*
20 * This is needed to make RSAREF happy on some MS-DOS compilers.
21 */
22 typedef struct UL_MD5Context UL_MD5_CTX;
23
24 #endif /* !UTIL_LINUX_MD5_H */