]>
Commit | Line | Data |
---|---|---|
42dea85c KZ |
1 | #ifndef UTIL_LINUX_MD5_H |
2 | #define UTIL_LINUX_MD5_H | |
6dbe3af9 | 3 | |
d03dd608 | 4 | #include <stdint.h> |
6dbe3af9 | 5 | |
42dea85c | 6 | #define UL_MD5LENGTH 16 |
e429d141 | 7 | |
42dea85c | 8 | struct UL_MD5Context { |
d03dd608 KZ |
9 | uint32_t buf[4]; |
10 | uint32_t bits[2]; | |
6dbe3af9 KZ |
11 | unsigned char in[64]; |
12 | }; | |
13 | ||
42dea85c KZ |
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]); | |
6dbe3af9 KZ |
18 | |
19 | /* | |
20 | * This is needed to make RSAREF happy on some MS-DOS compilers. | |
21 | */ | |
42dea85c | 22 | typedef struct UL_MD5Context UL_MD5_CTX; |
6dbe3af9 | 23 | |
42dea85c | 24 | #endif /* !UTIL_LINUX_MD5_H */ |