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