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