GNU libmicrohttpd 0.9.5
|
00001 #ifndef MD5_H 00002 #define MD5_H 00003 00004 #include "MHD_config.h" 00005 00006 #ifdef WORDS_BIGENDIAN 00007 #define HIGHFIRST 00008 #endif 00009 00010 #define MD5_DIGEST_SIZE 16 00011 00012 struct MD5Context 00013 { 00014 uint32_t buf[4]; 00015 uint32_t bits[2]; 00016 unsigned char in[64]; 00017 }; 00018 00019 00020 void 00021 MD5Init(struct MD5Context *ctx); 00022 00023 void 00024 MD5Update(struct MD5Context *ctx, 00025 const void *buf, 00026 unsigned len); 00027 00028 void MD5Final(unsigned char digest[MD5_DIGEST_SIZE], 00029 struct MD5Context *ctx); 00030 00031 #endif /* !MD5_H */