aboutsummaryrefslogtreecommitdiffstats
path: root/java-c-jni
diff options
context:
space:
mode:
Diffstat (limited to 'java-c-jni')
-rw-r--r--java-c-jni/SHA3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/java-c-jni/SHA3.c b/java-c-jni/SHA3.c
index ad01ebc..9124743 100644
--- a/java-c-jni/SHA3.c
+++ b/java-c-jni/SHA3.c
@@ -608,7 +608,7 @@ byte* digest(byte* msg, jint msglen)
byte* message;
byte* rc;
long rr = r >> 3, len;
- long nn = n >> 3, olen;
+ long nn = (n + 7) >> 3, olen;
long ww = w >> 3, ni;
long i, j = 0, ptr = 0, _;