2010-07-25 09:03:39 -05:00
|
|
|
#ifndef MD5_H
|
|
|
|
#define MD5_H
|
|
|
|
|
2010-08-16 04:20:12 -05:00
|
|
|
struct md5_context
|
|
|
|
{
|
2011-01-28 17:54:50 -06:00
|
|
|
unsigned buf[4];
|
|
|
|
unsigned bits[2];
|
|
|
|
unsigned char in[64];
|
2010-07-25 09:03:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
void md5_init(struct md5_context *context);
|
|
|
|
void md5_update(struct md5_context *context, unsigned char const *buf, unsigned len);
|
|
|
|
void md5_final(unsigned char digest[16], struct md5_context *context);
|
|
|
|
void md5_transform(unsigned buf[4], const unsigned char in[64]);
|
|
|
|
|
|
|
|
void md5_ascii(char *result, unsigned char const *buf, unsigned len);
|
|
|
|
|
|
|
|
#endif
|