Mailing list header changes (fuck you Google)
[citadel.git] / citadel / md5.h
1
2 #ifndef MD5_H
3 #define MD5_H
4
5 #include "sysdep.h"
6 #include "typesize.h"
7
8 struct MD5Context {
9         cit_uint32_t buf[4];
10         cit_uint32_t bits[2];
11         cit_uint32_t in[16];
12 };
13
14 void MD5Init(struct MD5Context *context);
15 void MD5Update(struct MD5Context *context, unsigned char const *buf,
16                unsigned len);
17 void MD5Final(unsigned char digest[16], struct MD5Context *context);
18 void MD5Transform(cit_uint32_t buf[4], cit_uint32_t const in[16]);
19 char *make_apop_string(char *realpass, char *nonce, char *buffer, size_t n);
20
21 /*
22  * This is needed to make RSAREF happy on some MS-DOS compilers.
23  */
24 #ifndef HAVE_OPENSSL
25 typedef struct MD5Context MD5_CTX;
26 #endif
27
28 #define MD5_DIGEST_LEN          16
29 #define MD5_HEXSTRING_SIZE      33
30
31 #endif /* !MD5_H */