From 6ffc52f7c38ba3e3a3d9ebce020964cb737ddcd8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 3 May 2013 01:27:24 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- pure-java/SHA3.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pure-java/SHA3.java b/pure-java/SHA3.java index 6253094..0dbbae9 100644 --- a/pure-java/SHA3.java +++ b/pure-java/SHA3.java @@ -508,7 +508,7 @@ public class SHA3 int ptr = 0; int rr = SHA3.r >> 3; - int nn = SHA3.n >> 3; + int nn = (SHA3.n + 7) >> 3; int ww = SHA3.w >> 3; /* Absorbing phase */ -- cgit v1.2.3-70-g09d2