6 #define MD5_DIGEST_SIZE 16
7 #define MD5_HMAC_BLOCK_SIZE 64
8 #define MD5_BLOCK_WORDS 16
9 #define MD5_HASH_WORDS 4
11 #define F1(x, y, z) (z ^ (x & (y ^ z)))
12 #define F2(x, y, z) F1(z, x, y)
13 #define F3(x, y, z) (x ^ y ^ z)
14 #define F4(x, y, z) (y ^ (x | ~z))
16 #define MD5STEP(f, w, x, y, z, in, s) \
17 (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x)
21 uint32_t block[MD5_BLOCK_WORDS];
25 extern void md5_update(struct md5_ctx *, const uint8_t *, unsigned int);
26 extern void md5_init(struct md5_ctx *);