From 4e0ea4634f06bfc7389a435b56366f71894a8d9f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 3 May 2013 02:57:34 +0200 Subject: apply change made to pure-java to other versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- java-c-jni/SHA3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java-c-jni/SHA3.c') 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, _; -- cgit v1.2.3-70-g09d2