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