00001 /***************************** License ********************************** 00002 00003 Copyright (C) 2008 by Communicative Machines 00004 http://www.cmlabs.com All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 ************************************************************************/ 00021 /* MD5.H - header file for MD5C.C 00022 */ 00023 00024 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All 00025 rights reserved. 00026 00027 License to copy and use this software is granted provided that it 00028 is identified as the "RSA Data Security, Inc. MD5 Message-Digest 00029 Algorithm" in all material mentioning or referencing this software 00030 or this function. 00031 00032 License is also granted to make and use derivative works provided 00033 that such works are identified as "derived from the RSA Data 00034 Security, Inc. MD5 Message-Digest Algorithm" in all material 00035 mentioning or referencing the derived work. 00036 00037 RSA Data Security, Inc. makes no representations concerning either 00038 the merchantability of this software or the suitability of this 00039 software for any particular purpose. It is provided "as is" 00040 without express or implied warranty of any kind. 00041 00042 These notices must be retained in any copies of any part of this 00043 documentation and/or software. 00044 */ 00045 00046 /* MD5 context. */ 00047 typedef struct { 00048 UINT4 state[4]; /* state (ABCD) */ 00049 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 00050 unsigned char buffer[64]; /* input buffer */ 00051 } MD5_CTX; 00052 00053 void MD5Init(MD5_CTX *); 00054 void MD5Update(MD5_CTX *, unsigned char *, unsigned int); 00055 void MD5Final(unsigned char [16], MD5_CTX *);