X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=lib%2Fhalfmd4.c;h=137e861d96902241455d8d4ffb01d5b79a4ef2e3;hb=17c00a2fed1bcc80949e0e68607bcea6af3c5358;hp=a8fe6274a13cfe4265f8f60a7726ba8f1def6edb;hpb=72a81683a8feac3c67bac24dfd88f81bac077be0;p=karo-tx-linux.git diff --git a/lib/halfmd4.c b/lib/halfmd4.c index a8fe6274a13c..137e861d9690 100644 --- a/lib/halfmd4.c +++ b/lib/halfmd4.c @@ -1,6 +1,7 @@ #include #include #include +#include /* F, G and H are basic MD4 functions: selection, majority, parity */ #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) @@ -14,7 +15,7 @@ * Rotation is separate from addition to prevent recomputation */ #define ROUND(f, a, b, c, d, x, s) \ - (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s))) + (a += f(b, c, d) + x, a = rol32(a, s)) #define K1 0 #define K2 013240474631UL #define K3 015666365641UL