56 MD5(
const std::string& text);
57 void update(
const unsigned char *buf, size_type length);
58 void update(
const char *buf, size_type length);
65 typedef unsigned char uint1;
66 typedef unsigned int uint4;
67 enum {blocksize = 64};
69 void transform(
const uint1 block[blocksize]);
70 static void decode(uint4 output[],
const uint1 input[], size_type len);
71 static void encode(uint1 output[],
const uint4 input[], size_type len);
74 uint1 buffer[blocksize];
80 static inline uint4 F(uint4 x, uint4 y, uint4 z);
81 static inline uint4 G(uint4 x, uint4 y, uint4 z);
82 static inline uint4 H(uint4 x, uint4 y, uint4 z);
83 static inline uint4 I(uint4 x, uint4 y, uint4 z);
84 static inline uint4 rotate_left(uint4 x,
int n);
85 static inline void FF(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac);
86 static inline void GG(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac);
87 static inline void HH(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac);
88 static inline void II(uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac);
91 std::string
md5(
const std::string str);
void update(const unsigned char *buf, size_type length)
std::string md5(const std::string str)
friend std::ostream & operator<<(std::ostream &, MD5 md5)
std::string hexdigest() const