00001 /* $Id: md5.h 42357 2001-12-08 21:59:30Z ossama $ */ 00002 00003 /* MD5.H - header file for MD5C.C 00004 */ 00005 00006 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All 00007 rights reserved. 00008 00009 License to copy and use this software is granted provided that it 00010 is identified as the "RSA Data Security, Inc. MD5 Message-Digest 00011 Algorithm" in all material mentioning or referencing this software 00012 or this function. 00013 00014 License is also granted to make and use derivative works provided 00015 that such works are identified as "derived from the RSA Data 00016 Security, Inc. MD5 Message-Digest Algorithm" in all material 00017 mentioning or referencing the derived work. 00018 00019 RSA Data Security, Inc. makes no representations concerning either 00020 the merchantability of this software or the suitability of this 00021 software for any particular purpose. It is provided "as is" 00022 without express or implied warranty of any kind. 00023 00024 These notices must be retained in any copies of any part of this 00025 documentation and/or software. 00026 */ 00027 00028 /* MD5 context. */ 00029 typedef struct { 00030 UINT4 state[4]; /* state (ABCD) */ 00031 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 00032 unsigned char buffer[64]; /* input buffer */ 00033 } MD5_CTX; 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif 00038 00039 /* void MD5Init PROTO_LIST ((MD5_CTX *)); */ 00040 void MD5Init (MD5_CTX *context); 00041 /* void MD5Update PROTO_LIST */ 00042 /* ((MD5_CTX *, unsigned char *, unsigned int)); */ 00043 void MD5Update (MD5_CTX *context, unsigned char *input, unsigned int inputLen); 00044 /* void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *)); */ 00045 void MD5Final (unsigned char digest[16], MD5_CTX *context); 00046 00047 #ifdef __cplusplus 00048 } 00049 #endif