rob@76: #ifndef INCLUDED_MD5_H rob@76: #define INCLUDED_MD5_H rob@76: /* from rfc1321 appendix A */ rob@76: rob@76: /* POINTER defines a generic pointer type */ rob@76: typedef unsigned char *POINTER; rob@76: rob@76: /* UINT2 defines a two byte word */ rob@76: typedef unsigned short int UINT2; rob@76: rob@76: /* UINT4 defines a four byte word */ rob@76: #if defined(__x86_64__) || defined(_M_X64) rob@76: typedef unsigned int UINT4; rob@76: #else rob@76: typedef unsigned long int UINT4; rob@76: #endif rob@76: rob@76: rob@76: /* MD5.H - header file for MD5C.C rob@76: */ rob@76: rob@76: /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rob@76: rights reserved. rob@76: rob@76: License to copy and use this software is granted provided that it rob@76: is identified as the "RSA Data Security, Inc. MD5 Message-Digest rob@76: Algorithm" in all material mentioning or referencing this software rob@76: or this function. rob@76: rob@76: License is also granted to make and use derivative works provided rob@76: that such works are identified as "derived from the RSA Data rob@76: Security, Inc. MD5 Message-Digest Algorithm" in all material rob@76: mentioning or referencing the derived work. rob@76: rob@76: RSA Data Security, Inc. makes no representations concerning either rob@76: the merchantability of this software or the suitability of this rob@76: software for any particular purpose. It is provided "as is" rob@76: without express or implied warranty of any kind. rob@76: rob@76: These notices must be retained in any copies of any part of this rob@76: documentation and/or software. rob@76: */ rob@76: rob@76: /* MD5 context. */ rob@76: typedef struct { rob@76: UINT4 state[4]; /* state (ABCD) */ rob@76: UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ rob@76: unsigned char buffer[64]; /* input buffer */ rob@76: } MD5_CTX; rob@76: rob@76: void MD5Init(MD5_CTX *); rob@76: void MD5Update(MD5_CTX *, unsigned char *, unsigned int); rob@76: void MD5Final(unsigned char [16], MD5_CTX *); rob@76: rob@76: #endif /* INCLUDED_MD5_H */