aboutsummaryrefslogtreecommitdiffstats
path: root/java-c-jni/SHA3.c
diff options
context:
space:
mode:
Diffstat (limited to 'java-c-jni/SHA3.c')
-rw-r--r--java-c-jni/SHA3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/java-c-jni/SHA3.c b/java-c-jni/SHA3.c
index e785406..76b1d61 100644
--- a/java-c-jni/SHA3.c
+++ b/java-c-jni/SHA3.c
@@ -723,7 +723,7 @@ byte* digest(byte* msg, long msglen, long bits, int* suffix, long suffix_len, bo
olen = n;
if (withReturn)
{
- ni = min(25, rr);
+ ni = rr / ww;
while (olen > 0)
{
i = 0;
@@ -801,7 +801,7 @@ byte* squeeze()
rc = (byte*)malloc(nn = (n + 7) >> 3);
olen = n;
j = ptr = 0;
- ni = (25 < r >> 3) ? 25 : (r >> 3);
+ ni = (r >> 3) / ww;
while (olen > 0)
{