D | halfmd4.c | 5 /* F, G and H are basic MD4 functions: selection, majority, parity */ 6 #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) macro 16 #define ROUND(f, a, b, c, d, x, s) \ argument 17 (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s))) 18 #define K1 0 23 * Basic cut-down MD4 transform. Returns only 32 bits of result. 27 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local 30 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform() 31 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform() 32 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform() [all …]
|