1 #ifndef MD5_H 2 #define MD5_H 3 4 #if defined(_MSC_VER) && _MSC_VER < 1600 5 typedef unsigned __int32 uint32_t; 6 #else 7 #include <stdint.h> 8 #endif 9 10 struct MD5Context { 11 uint32_t buf[4]; 12 uint32_t bits[2]; 13 unsigned char in[64]; 14 }; 15 16 void MD5Init(struct MD5Context *context); 17 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len); 18 void MD5Final(unsigned char digest[16], struct MD5Context *context); 19 void MD5Transform(uint32_t buf[4], uint32_t const in[16]); 20 21 #endif /* !MD5_H */ 22