00001 #ifndef _md5_h 00002 #define _md5_h 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 unsigned int state[4]; /* state (ABCD) */ 00031 unsigned int count[2]; /* number of bits, modulo 2^64 (lsb first) */ 00032 unsigned char buffer[64]; /* input buffer */ 00033 } MD5_CTX; 00034 00035 void MD5Init (MD5_CTX *); 00036 void MD5Update (MD5_CTX *, const unsigned char *, unsigned int); 00037 void MD5Final (unsigned char[16], MD5_CTX *); 00038 00039 #endif
1.4.6