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 --- python3/sha3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python3') diff --git a/python3/sha3.py b/python3/sha3.py index e1c10fa..639be46 100644 --- a/python3/sha3.py +++ b/python3/sha3.py @@ -572,7 +572,7 @@ class SHA3: olen = self.n j = 0 - ni = min(25, rr) + ni = rr // ww while olen > 0: i = 0 while (i < ni) and (j < nn): @@ -637,7 +637,7 @@ class SHA3: olen = self.n j = 0 ptr = 0 - ni = min(25, self.r >> 3) + ni = (self.r >> 3) // ww while olen > 0: i = 0 -- cgit v1.2.3-70-g09d2