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