md5.h

Go to the documentation of this file.
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 md5.c for more information.
00007  */
00008 
00009 /* Any 32-bit or wider unsigned integer data type will do */
00010 typedef unsigned long MD5_u32plus;
00011 
00012 typedef struct {
00013         MD5_u32plus lo, hi;
00014         MD5_u32plus a, b, c, d;
00015         unsigned char buffer[64];
00016         MD5_u32plus block[16];
00017 } MD5_CTX;
00018 
00019 extern void sat_MD5_Init(MD5_CTX *ctx);
00020 extern void sat_MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
00021 extern void sat_MD5_Final(unsigned char *result, MD5_CTX *ctx);

doxygen