Skip to content

Commit 9de7dfa

Browse files
committed
Fix blake hashing
1 parent 1feaf0e commit 9de7dfa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sha3/sph_blake.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ static const sph_u64 CB[16] = {
548548
M[0xD] = sph_dec32be_aligned(buf + 52); \
549549
M[0xE] = sph_dec32be_aligned(buf + 56); \
550550
M[0xF] = sph_dec32be_aligned(buf + 60); \
551-
for (r = 0; r < 14; r ++) \
551+
for (r = 0; r < 8; r ++) \
552552
ROUND_S(r); \
553553
H0 ^= S0 ^ V0 ^ V8; \
554554
H1 ^= S1 ^ V1 ^ V9; \
@@ -607,12 +607,6 @@ static const sph_u64 CB[16] = {
607607
ROUND_S(5); \
608608
ROUND_S(6); \
609609
ROUND_S(7); \
610-
ROUND_S(8); \
611-
ROUND_S(9); \
612-
ROUND_S(0); \
613-
ROUND_S(1); \
614-
ROUND_S(2); \
615-
ROUND_S(3); \
616610
H0 ^= S0 ^ V0 ^ V8; \
617611
H1 ^= S1 ^ V1 ^ V9; \
618612
H2 ^= S2 ^ V2 ^ VA; \

0 commit comments

Comments
 (0)