From d0262422cc014d64b480197fd3961dd528ba6feb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 11 Nov 2014 22:54:48 +0100 Subject: fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- java/ConcurrentSHA3.java | 4 ++-- java/SHA3.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'java') diff --git a/java/ConcurrentSHA3.java b/java/ConcurrentSHA3.java index 90569f8..69425b9 100644 --- a/java/ConcurrentSHA3.java +++ b/java/ConcurrentSHA3.java @@ -832,7 +832,7 @@ public class ConcurrentSHA3 int olen = this.n; int j = 0; - int ni = Math.min(25, rr); + int ni = rr / ww; while (olen > 0) { int i = 0; @@ -931,7 +931,7 @@ public class ConcurrentSHA3 int olen = this.n; int j = 0, ptr = 0; - int ni = Math.min(25, this.r >> 3); + int ni = (this.r >> 3) / ww; while (olen > 0) { int i = 0; diff --git a/java/SHA3.java b/java/SHA3.java index fa70915..9f41a00 100644 --- a/java/SHA3.java +++ b/java/SHA3.java @@ -838,7 +838,7 @@ public class SHA3 int olen = SHA3.n; int j = 0; - int ni = Math.min(25, rr); + int ni = rr / ww; while (olen > 0) { int i = 0; @@ -937,7 +937,7 @@ public class SHA3 int olen = SHA3.n; int j = 0, ptr = 0; - int ni = Math.min(25, SHA3.r >> 3); + int ni = (SHA3.r >> 3) / ww; while (olen > 0) { int i = 0; -- cgit v1.2.3-70-g09d2