File indexing completed on 2025-01-19 03:55:20

0001 #ifndef __MD5_h__
0002 #define __MD5_h__
0003 
0004 /******************************************************************************/
0005 
0006 /*
0007     MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
0008 
0009     Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights
0010     reserved.
0011 
0012     License to copy and use this software is granted provided that it is
0013     identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in
0014     all material mentioning or referencing this software or this function.
0015 
0016     License is also granted to make and use derivative works provided that such
0017     works are identified as "derived from the RSA Data Security, Inc. MD5
0018     Message-Digest Algorithm" in all material mentioning or referencing the
0019     derived work.
0020 
0021     RSA Data Security, Inc. makes no representations concerning either the
0022     merchantability of this software or the suitability of this software for
0023     any particular purpose. It is provided "as is" without express or implied
0024     warranty of any kind.
0025 
0026     These notices must be retained in any copies of any part of this
0027     documentation and/or software.
0028 */
0029 
0030 /******************************************************************************/
0031 
0032 #include "XMP_Const.h"  // For safe fixed integer sizes.
0033 
0034 /* MD5 context. */
0035 struct MD5_CTX
0036     {
0037     XMP_Uns32 state[4];                                   /* state (ABCD) */
0038     XMP_Uns32 count[2];        /* number of bits, modulo 2^64 (lsb first) */
0039     XMP_Uns8 buffer[64];                         /* input buffer */
0040     };
0041 
0042 extern void MD5Init (MD5_CTX *);
0043 extern void MD5Update (MD5_CTX *, XMP_Uns8 *, XMP_Uns32);
0044 extern void MD5Final(XMP_Uns8 [16], MD5_CTX *);
0045 
0046 /******************************************************************************/
0047 
0048 #endif