00001 /* 00002 * This is an OpenSSL-compatible implementation of the RSA Data Security, 00003 * Inc. MD5 Message-Digest Algorithm. 00004 * 00005 * Written by Solar Designer <solar@openwall.com> in 2001, and placed in 00006 * the public domain. See md5c.c for more information. 00007 */ 00008 00009 #ifndef _MD5_H 00010 #define _MD5_H 00011 00012 /* Any 32-bit or wider integer data type will do */ 00013 typedef unsigned long MD5_u32plus; 00014 00015 typedef struct { 00016 MD5_u32plus lo, hi; 00017 MD5_u32plus a, b, c, d; 00018 unsigned char buffer[64]; 00019 MD5_u32plus block[16]; 00020 } MD5_CTX; 00021 00022 extern void MD5_Init(MD5_CTX *ctx); 00023 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size); 00024 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); 00025 00026 #endif