00001 00008 #ifndef MD5_H 00009 #define MD5_H 00010 00011 #ifdef __alpha 00012 typedef unsigned int uint32; 00013 #else 00014 typedef unsigned long uint32; 00015 #endif 00016 00017 struct MD5Context { 00018 uint32 buf[4]; 00019 uint32 bits[2]; 00020 unsigned char in[64]; 00021 }; 00022 00023 void MD5Init(struct MD5Context *context); 00024 void MD5Update(struct MD5Context *context, unsigned char const *buf, 00025 unsigned len); 00026 void MD5Final(unsigned char digest[16], struct MD5Context *context); 00027 void MD5Transform(uint32 buf[4], uint32 const in[16]); 00028 00029 /* 00030 * This is needed to make RSAREF happy on some MS-DOS compilers. 00031 */ 00032 typedef struct MD5Context MD5_CTX; 00033 00034 #endif /* !MD5_H */