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