From aaa48e1bbe053199dc49fcb5bbd565b08d5453ef Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Feb 2013 20:33:54 +0100 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(-) (limited to 'pure-java') diff --git a/pure-java/SHA3.java b/pure-java/SHA3.java index 700e469..2e0f774 100644 --- a/pure-java/SHA3.java +++ b/pure-java/SHA3.java @@ -362,7 +362,7 @@ public class SHA3 SHA3.w = SHA3.b / 25; SHA3.l = SHA3.lb(SHA3.w); SHA3.nr = 12 + (SHA3.l << 1); - SHA3.wmod = (1L << SHA3.w) - 1L; + SHA3.wmod = w == 64 ? -1L : (1L << SHA3.w) - 1L; SHA3.S = new long[25]; SHA3.M = new byte[(SHA3.r * SHA3.b) >> 2]; SHA3.mptr = 0; -- cgit v1.2.3-70-g09d2