H A D | md4.c | 64 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) macro 110 ROUND2(a, b, c, d,in[ 0], 3); md4_transform() 111 ROUND2(d, a, b, c, in[4], 5); md4_transform() 112 ROUND2(c, d, a, b, in[8], 9); md4_transform() 113 ROUND2(b, c, d, a, in[12], 13); md4_transform() 114 ROUND2(a, b, c, d, in[1], 3); md4_transform() 115 ROUND2(d, a, b, c, in[5], 5); md4_transform() 116 ROUND2(c, d, a, b, in[9], 9); md4_transform() 117 ROUND2(b, c, d, a, in[13], 13); md4_transform() 118 ROUND2(a, b, c, d, in[2], 3); md4_transform() 119 ROUND2(d, a, b, c, in[6], 5); md4_transform() 120 ROUND2(c, d, a, b, in[10], 9); md4_transform() 121 ROUND2(b, c, d, a, in[14], 13); md4_transform() 122 ROUND2(a, b, c, d, in[3], 3); md4_transform() 123 ROUND2(d, a, b, c, in[7], 5); md4_transform() 124 ROUND2(c, d, a, b, in[11], 9); md4_transform() 125 ROUND2(b, c, d, a, in[15], 13); md4_transform()
|