]> Pileus Git - ~andy/fetchmail/blob - fm_md5.h
Attempt merging from 6.3.24.
[~andy/fetchmail] / fm_md5.h
1 #ifndef MD5_H
2 #define MD5_H
3
4 #include "config.h"
5
6 #include <stdint.h>
7
8 #include "fetchmail.h"
9
10 struct MD5Context {
11         uint32_t buf[4];
12         uint32_t bits[2];
13         union {
14             unsigned char in[64];
15             uint32_t      in32[16];
16         } u;
17 };
18
19 void MD5Init(struct MD5Context *context);
20 void MD5Update(struct MD5Context *context, const void *buf, unsigned len);
21 void MD5Final(void *digest, struct MD5Context *context);
22 void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
23
24 /*
25  * This is needed to make RSAREF happy on some MS-DOS compilers.
26  */
27 typedef struct MD5Context MD5_CTX;
28
29 #endif /* !MD5_H */