From e53cf16fa8719dc8e3550d1e32a2a517a87100fc Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Thu, 4 Jul 2019 21:13:57 -0400 Subject: [PATCH] Change sha3_512_inc_finalize output length to 64 --- common/fips202.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fips202.c b/common/fips202.c index 794e25a0..4c4e5b11 100644 --- a/common/fips202.c +++ b/common/fips202.c @@ -775,7 +775,7 @@ void sha3_512_inc_finalize(uint8_t *output, sha3_512incctx *state) { keccak_squeezeblocks(t, 1, state->ctx, SHA3_512_RATE); - for (size_t i = 0; i < 32; i++) { + for (size_t i = 0; i < 64; i++) { output[i] = t[i]; } }