RORc instead of ROR

This commit is contained in:
Karel Miko 2016-01-14 22:09:07 +01:00 committed by Steffen Jaeckel
parent d0a534393a
commit af77f1fae9

View File

@ -190,7 +190,7 @@ static ulong64 F(ulong64 x)
U = SP1110[(x >> loc(1)) & 0xFF] ^ SP0222[(x >> loc(2)) & 0xFF] ^ SP3033[(x >> loc(3)) & 0xFF] ^ SP4404[(x >> loc(4)) & 0xFF]; U = SP1110[(x >> loc(1)) & 0xFF] ^ SP0222[(x >> loc(2)) & 0xFF] ^ SP3033[(x >> loc(3)) & 0xFF] ^ SP4404[(x >> loc(4)) & 0xFF];
D ^= U; D ^= U;
U = D ^ ROR(U, 8); U = D ^ RORc(U, 8);
return ((ulong64)U) | (((ulong64)D) << CONST64(32)); return ((ulong64)U) | (((ulong64)D) << CONST64(32));
} }