b151ef55 |
/* |
63a83426 |
* This is an OpenSSL-compatible implementation of the RSA Data Security, |
839a8b2e |
* Inc. MD5 Message-Digest Algorithm (RFC 1321). |
d2a12ffd |
* |
63a83426 |
* Written by Solar Designer <solar at openwall.com> in 2001, and placed |
839a8b2e |
* in the public domain. There's absolutely no warranty.
*
* See md5.c for more information. |
b151ef55 |
*/
|
d2a12ffd |
#ifndef __MD5_H
#define __MD5_H |
b151ef55 |
|
63a83426 |
/* Any 32-bit or wider unsigned integer data type will do */ |
839a8b2e |
typedef unsigned int MD5_u32plus; |
b151ef55 |
|
63a83426 |
typedef struct {
MD5_u32plus lo, hi;
MD5_u32plus a, b, c, d;
unsigned char buffer[64];
MD5_u32plus block[16];
} MD5_CTX; |
b151ef55 |
|
63a83426 |
extern void MD5_Init(MD5_CTX *ctx);
extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); |
b151ef55 |
|
d2a12ffd |
#endif |