one more readable for loop

This commit is contained in:
Karel Miko 2017-05-03 17:01:18 +02:00
parent f831e27702
commit 4e66160ac2

View File

@ -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;