diff options
Diffstat (limited to 'java-c-jni/SHA3.c')
-rw-r--r-- | java-c-jni/SHA3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java-c-jni/SHA3.c b/java-c-jni/SHA3.c index 9124743..827458a 100644 --- a/java-c-jni/SHA3.c +++ b/java-c-jni/SHA3.c @@ -680,6 +680,9 @@ byte* digest(byte* msg, jint msglen) if (olen > 0) keccakF(S); } + if ((n & 7)) + rc[n >> 3] &= (1 << (n & 7)) - 1; + return rc; } |