00001 #ifndef MD5_H 00002 #define MD5_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 #ifdef __alpha 00008 typedef unsigned int uint32; 00009 #else 00010 typedef unsigned long uint32; 00011 #endif 00012 00013 struct MD5Context { 00014 uint32 buf[4]; 00015 uint32 bits[2]; 00016 unsigned char in[64]; 00017 }; 00018 00019 void MD5Init(struct MD5Context *context); 00020 void MD5Update(struct MD5Context *context, 00021 unsigned char const *buf, unsigned len); 00022 void MD5Final(unsigned char digest[16], 00023 struct MD5Context *context); 00024 void MD5Transform(uint32 buf[4], uint32 const in[16]); 00025 00026 typedef struct MD5Context MD5_CTX; 00027 #ifdef __cplusplus 00028 } 00029 #endif 00030 #endif /* !MD5_H */
1.3.6-20040222