]> granicus.if.org Git - linux-pam/blob - modules/pam_pwdb/md5.h
Relevant BUGIDs: 728887
[linux-pam] / modules / pam_pwdb / md5.h
1 #ifndef MD5_H
2 #define MD5_H
3
4 typedef unsigned int uint32;
5
6 struct MD5Context {
7     uint32 buf[4];
8     uint32 bits[2];
9     unsigned char in[64];
10 };
11
12 void GoodMD5Init(struct MD5Context *);
13 void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned);
14 void GoodMD5Final(unsigned char digest[16], struct MD5Context *);
15 void GoodMD5Transform(uint32 buf[4], uint32 const in[16]);
16 void BrokenMD5Init(struct MD5Context *);
17 void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned);
18 void BrokenMD5Final(unsigned char digest[16], struct MD5Context *);
19 void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]);
20
21 char *Goodcrypt_md5(const char *pw, const char *salt);
22 char *Brokencrypt_md5(const char *pw, const char *salt);
23
24 /*
25 * This is needed to make RSAREF happy on some MS-DOS compilers.
26 */
27
28 typedef struct MD5Context MD5_CTX;
29
30 #endif /* MD5_H */