Blame modules/pam_unix/md5.h

Packit Service b29381
Packit Service b29381
#ifndef MD5_H
Packit Service b29381
#define MD5_H
Packit Service b29381
Packit Service b29381
typedef unsigned int uint32;
Packit Service b29381
Packit Service b29381
struct MD5Context {
Packit Service b29381
	uint32 buf[4];
Packit Service b29381
	uint32 bits[2];
Packit Service b29381
	unsigned char in[64];
Packit Service b29381
};
Packit Service b29381
Packit Service b29381
void GoodMD5Init(struct MD5Context *);
Packit Service b29381
void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned);
Packit Service b29381
void GoodMD5Final(unsigned char digest[16], struct MD5Context *);
Packit Service b29381
void GoodMD5Transform(uint32 buf[4], uint32 const in[16]);
Packit Service b29381
void BrokenMD5Init(struct MD5Context *);
Packit Service b29381
void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned);
Packit Service b29381
void BrokenMD5Final(unsigned char digest[16], struct MD5Context *);
Packit Service b29381
void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]);
Packit Service b29381
Packit Service b29381
char *Goodcrypt_md5(const char *pw, const char *salt);
Packit Service b29381
char *Brokencrypt_md5(const char *pw, const char *salt);
Packit Service b29381
Packit Service b29381
/*
Packit Service b29381
 * This is needed to make RSAREF happy on some MS-DOS compilers.
Packit Service b29381
 */
Packit Service b29381
Packit Service b29381
typedef struct MD5Context MD5_CTX;
Packit Service b29381
Packit Service b29381
#endif				/* MD5_H */