Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / libpam / modules / pam_unix / md5.h
CommitLineData
984263bc
MD
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
6typedef unsigned int uint32;
7
8struct MD5Context {
9 uint32 buf[4];
10 uint32 bits[2];
11 unsigned char in[64];
12};
13
14void GoodMD5Init(struct MD5Context *);
15void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned);
16void GoodMD5Final(unsigned char digest[16], struct MD5Context *);
17void GoodMD5Transform(uint32 buf[4], uint32 const in[16]);
18void BrokenMD5Init(struct MD5Context *);
19void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned);
20void BrokenMD5Final(unsigned char digest[16], struct MD5Context *);
21void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]);
22
23char *Goodcrypt_md5(const char *pw, const char *salt);
24char *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
30typedef struct MD5Context MD5_CTX;
31
32#endif /* MD5_H */