From 4e66160ac21b351e31c46acf3ac90b20fe40a134 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Wed, 3 May 2017 17:01:18 +0200 Subject: [PATCH] one more readable for loop --- src/hashes/sha3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hashes/sha3.c b/src/hashes/sha3.c index d5b682f..35c4925 100644 --- a/src/hashes/sha3.c +++ b/src/hashes/sha3.c @@ -241,7 +241,9 @@ int sha3_done(hash_state *md, unsigned char *hash) keccakf(md->sha3.s); /* store sha3.s[] as little-endian bytes into sha3.sb */ - for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) STORE64L(md->sha3.s[i], md->sha3.sb + i * 8); + for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) { + STORE64L(md->sha3.s[i], md->sha3.sb + i * 8); + } XMEMCPY(hash, md->sha3.sb, md->sha3.capacity_words * 4); return CRYPT_OK;