aboutsummaryrefslogtreecommitdiffstats
path: root/java-c-jni/SHA3.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-05-03 02:57:34 +0200
committerMattias Andrée <maandree@operamail.com>2013-05-03 02:57:34 +0200
commit4e0ea4634f06bfc7389a435b56366f71894a8d9f (patch)
treea597b0a7c96e3ef5cdbbd40cca4e68cf1e904b52 /java-c-jni/SHA3.c
parentm (diff)
downloadsha3sum-4e0ea4634f06bfc7389a435b56366f71894a8d9f.tar.gz
sha3sum-4e0ea4634f06bfc7389a435b56366f71894a8d9f.tar.bz2
sha3sum-4e0ea4634f06bfc7389a435b56366f71894a8d9f.tar.xz
apply change made to pure-java to other versions
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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, _;