Skip to content

Commit 4e66160

Browse files
committed
one more readable for loop
1 parent f831e27 commit 4e66160

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hashes/sha3.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ int sha3_done(hash_state *md, unsigned char *hash)
241241
keccakf(md->sha3.s);
242242

243243
/* store sha3.s[] as little-endian bytes into sha3.sb */
244-
for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) STORE64L(md->sha3.s[i], md->sha3.sb + i * 8);
244+
for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) {
245+
STORE64L(md->sha3.s[i], md->sha3.sb + i * 8);
246+
}
245247

246248
XMEMCPY(hash, md->sha3.sb, md->sha3.capacity_words * 4);
247249
return CRYPT_OK;

0 commit comments

Comments
 (0)