aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-11 22:54:27 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-11 22:54:27 +0100
commit603dceda5f89f78b326c49855b5d65339756542a (patch)
treecdafaddaf12d13d0586f2ef8e8ac65b7fe47ea59 /src
parentm (diff)
downloadlibkeccak-603dceda5f89f78b326c49855b5d65339756542a.tar.gz
libkeccak-603dceda5f89f78b326c49855b5d65339756542a.tar.bz2
libkeccak-603dceda5f89f78b326c49855b5d65339756542a.tar.xz
fix bug in libkeccak_squeezing_phase
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libkeccak/digest.c2
1 files changed, 1 insertions, 1 deletions
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;