From 13848fe3dccaa3e015711d3e78e67a767bcd6e71 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 10 Apr 2009 13:28:34 +0000 Subject: Use S2 instead of x,y vars as temps for single iteration of psi --- src/hash/gost_3411/gost_3411.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/hash') diff --git a/src/hash/gost_3411/gost_3411.cpp b/src/hash/gost_3411/gost_3411.cpp index a28386959..ae96b2467 100644 --- a/src/hash/gost_3411/gost_3411.cpp +++ b/src/hash/gost_3411/gost_3411.cpp @@ -161,12 +161,12 @@ void GOST_34_11::compress_n(const byte input[], u32bit blocks) xor_buf(S, S2, input + 32*i, 32); - byte x = S[0] ^ S[2] ^ S[4] ^ S[6] ^ S[24] ^ S[30]; - byte y = S[1] ^ S[3] ^ S[5] ^ S[7] ^ S[25] ^ S[31]; + S2[0] = S[0] ^ S[2] ^ S[4] ^ S[6] ^ S[24] ^ S[30]; + S2[1] = S[1] ^ S[3] ^ S[5] ^ S[7] ^ S[25] ^ S[31]; copy_mem(S, S+2, 30); - S[30] = x; - S[31] = y; + S[30] = S2[0]; + S[31] = S2[1]; xor_buf(S, hash, 32); -- cgit v1.2.3