From 603dceda5f89f78b326c49855b5d65339756542a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 11 Nov 2014 22:54:27 +0100 Subject: fix bug in libkeccak_squeezing_phase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libkeccak/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkeccak/digest.c b/src/libkeccak/digest.c index d359405..e001a35 100644 --- a/src/libkeccak/digest.c +++ b/src/libkeccak/digest.c @@ -340,7 +340,7 @@ void libkeccak_squeezing_phase(register libkeccak_state_t* restrict state, long long nn, long ww, register char* restrict hashsum) { register int_fast64_t v; - register long ni = rr > 25 ? 25 : rr; + register long ni = rr / ww; auto long olen = state->n; auto long i, j = 0; register long k; -- cgit v1.2.3-70-g09d2