diff options
Diffstat (limited to '')
-rw-r--r-- | pure-java/SHA3.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pure-java/SHA3.java b/pure-java/SHA3.java index 0dbbae9..5dad5c7 100644 --- a/pure-java/SHA3.java +++ b/pure-java/SHA3.java @@ -599,6 +599,9 @@ public class SHA3 if (olen > 0) SHA3.keccakF(S); } + if ((SHA3.n & 7) != 0) + rc[rc.length - 1] &= (1 << (SHA3.n & 7)) - 1 + return rc; } |