aboutsummaryrefslogtreecommitdiffstats
path: root/java/ConcurrentSHA3.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/ConcurrentSHA3.java')
-rw-r--r--java/ConcurrentSHA3.java4
1 files changed, 2 insertions, 2 deletions
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;