]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/md5.h
include: add missing license lines
[thirdparty/util-linux.git] / include / md5.h
1 /*
2 * No copyright is claimed. This code is in the public domain; do with it what
3 * you wish.
4 */
5 #ifndef UTIL_LINUX_MD5_H
6 #define UTIL_LINUX_MD5_H
7
8 #include <stdint.h>
9
10 #define UL_MD5LENGTH 16
11
12 struct UL_MD5Context {
13 uint32_t buf[4];
14 uint32_t bits[2];
15 unsigned char in[64];
16 };
17
18 void ul_MD5Init(struct UL_MD5Context *ctx);
19 void ul_MD5Update(struct UL_MD5Context *ctx, unsigned char const *buf, unsigned len);
20 void ul_MD5Final(unsigned char digest[UL_MD5LENGTH], struct UL_MD5Context *ctx);
21 void ul_MD5Transform(uint32_t buf[4], uint32_t const in[16]);
22
23 /*
24 * This is needed to make RSAREF happy on some MS-DOS compilers.
25 */
26 typedef struct UL_MD5Context UL_MD5_CTX;
27
28 #endif /* !UTIL_LINUX_MD5_H */