e3aaff8e |
/* |
b5f780c2 |
* This is an OpenSSL-compatible implementation of the RSA Data Security, |
20db8070 |
* Inc. MD5 Message-Digest Algorithm (RFC 1321). |
335d1663 |
* |
b5f780c2 |
* Written by Solar Designer <solar at openwall.com> in 2001, and placed |
20db8070 |
* in the public domain. There's absolutely no warranty.
*
* See md5.c for more information. |
e3aaff8e |
*/
|
335d1663 |
#ifndef __MD5_H
#define __MD5_H |
e3aaff8e |
|
b5f780c2 |
/* Any 32-bit or wider unsigned integer data type will do */ |
20db8070 |
typedef unsigned int MD5_u32plus; |
e3aaff8e |
|
b5f780c2 |
typedef struct {
MD5_u32plus lo, hi;
MD5_u32plus a, b, c, d;
unsigned char buffer[64];
MD5_u32plus block[16]; |
2a9e6ac8 |
} cli_md5_ctx; |
e3aaff8e |
|
2a9e6ac8 |
extern void cli_md5_init(cli_md5_ctx *ctx); |
96435bdc |
extern void cli_md5_update(cli_md5_ctx *ctx, const void *data, unsigned long size); |
2a9e6ac8 |
extern void cli_md5_final(unsigned char *result, cli_md5_ctx *ctx); |
e3aaff8e |
|
335d1663 |
#endif |