aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-04-10 13:28:34 +0000
committerlloyd <[email protected]>2009-04-10 13:28:34 +0000
commit13848fe3dccaa3e015711d3e78e67a767bcd6e71 (patch)
tree1658bffa9f2923a4b077dddbb5055894aaf91596 /src
parente2da31f127c7137d7ec945b8942dd88567fac566 (diff)
Use S2 instead of x,y vars as temps for single iteration of psi
Diffstat (limited to 'src')
-rw-r--r--src/hash/gost_3411/gost_3411.cpp8
1 files changed, 4 insertions, 4 deletions
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);