]> code.citadel.org Git - citadel.git/blob - citadel/md5.h
Files used by the APOP auth scheme, and possibly for other things, such as file integ...
[citadel.git] / citadel / md5.h
1 #ifndef MD5_H
2 #define MD5_H
3
4 struct MD5Context {
5         u_int32_t buf[4];
6         u_int32_t bits[2];
7         unsigned char in[64];
8 };
9
10 void MD5Init(struct MD5Context *context);
11 void MD5Update(struct MD5Context *context, unsigned char const *buf,
12                unsigned len);
13 void MD5Final(unsigned char digest[16], struct MD5Context *context);
14 void MD5Transform(u_int32_t buf[4], u_int32_t const in[16]);
15 char *make_apop_string(char *realpass, char *nonce, u_char *buffer);
16
17 /*
18  * This is needed to make RSAREF happy on some MS-DOS compilers.
19  */
20 typedef struct MD5Context MD5_CTX;
21
22 #define MD5_DIGEST_LEN          16
23 #define MD5_HEXSTRING_SIZE      33
24
25 #endif /* !MD5_H */