Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[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 /* $DragonFly: src/contrib/libpam/modules/pam_unix/Attic/md5.h,v 1.2 2003/06/17 04:24:03 dillon Exp $ */
3
4 #ifndef MD5_H
5 #define MD5_H
6
7 typedef unsigned int uint32;
8
9 struct MD5Context {
10         uint32 buf[4];
11         uint32 bits[2];
12         unsigned char in[64];
13 };
14
15 void GoodMD5Init(struct MD5Context *);
16 void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned);
17 void GoodMD5Final(unsigned char digest[16], struct MD5Context *);
18 void GoodMD5Transform(uint32 buf[4], uint32 const in[16]);
19 void BrokenMD5Init(struct MD5Context *);
20 void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned);
21 void BrokenMD5Final(unsigned char digest[16], struct MD5Context *);
22 void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]);
23
24 char *Goodcrypt_md5(const char *pw, const char *salt);
25 char *Brokencrypt_md5(const char *pw, const char *salt);
26
27 /*
28  * This is needed to make RSAREF happy on some MS-DOS compilers.
29  */
30
31 typedef struct MD5Context MD5_CTX;
32
33 #endif                          /* MD5_H */