]> Pileus Git - ~andy/fetchmail/blob - md5.h
update.
[~andy/fetchmail] / md5.h
1 #ifndef MD5_H
2 #define MD5_H
3 #ifndef HEADER_MD5_H
4 /* Try to avoid clashes with OpenSSL */
5 #define HEADER_MD5_H 
6 #endif
7
8 #include "config.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         unsigned char in[64];
20 };
21
22 void MD5Init(struct MD5Context *context);
23 void MD5Update(struct MD5Context *context, const void *buf, unsigned len);
24 void MD5Final(void *digest, struct MD5Context *context);
25 void MD5Transform(uint32 buf[4], uint32 const in[16]);
26
27 char *MD5Digest (unsigned const char *s);
28
29 /*
30  * This is needed to make RSAREF happy on some MS-DOS compilers.
31  */
32 typedef struct MD5Context MD5_CTX;
33
34 #endif /* !MD5_H */