Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / libpam / modules / pam_unix / md5.h
1 /* $FreeBSD: src/contrib/libpam/modules/pam_unix/md5.h,v 1.1.1.1.2.2 2001/06/11 15:28:30 markm Exp $ */
2
3 #ifndef MD5_H
4 #define MD5_H
5
6 typedef unsigned int uint32;
7
8 struct MD5Context {
9         uint32 buf[4];
10         uint32 bits[2];
11         unsigned char in[64];
12 };
13
14 void GoodMD5Init(struct MD5Context *);
15 void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned);
16 void GoodMD5Final(unsigned char digest[16], struct MD5Context *);
17 void GoodMD5Transform(uint32 buf[4], uint32 const in[16]);
18 void BrokenMD5Init(struct MD5Context *);
19 void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned);
20 void BrokenMD5Final(unsigned char digest[16], struct MD5Context *);
21 void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]);
22
23 char *Goodcrypt_md5(const char *pw, const char *salt);
24 char *Brokencrypt_md5(const char *pw, const char *salt);
25
26 /*
27  * This is needed to make RSAREF happy on some MS-DOS compilers.
28  */
29
30 typedef struct MD5Context MD5_CTX;
31
32 #endif                          /* MD5_H */