1
/* C implementation by Christophe Devine, C++ "class-ified" by [T3] */
11
#define uint8 unsigned char
15
#define uint32 unsigned long int
32
CMD5(const string& sText);
33
CMD5(const char* szText, uint32 nTextLen);
36
operator string() const
38
return (string) m_szMD5;
41
operator char*() const
43
return (char*)m_szMD5;
46
char* MakeHash(const char* szText, uint32 nTextLen);
49
void md5_starts( md5_context *ctx ) const;
50
void md5_update( md5_context *ctx, const uint8 *input, uint32 length ) const;
51
void md5_finish( md5_context *ctx, uint8 digest[16] ) const;
54
void md5_process( md5_context *ctx, const uint8 data[64] ) const;