aboutsummaryrefslogtreecommitdiffstats
path: root/c/sha3.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/sha3.c b/c/sha3.c
index 72f3e83..a5e8f69 100644
--- a/c/sha3.c
+++ b/c/sha3.c
@@ -619,7 +619,7 @@ extern byte* digest(byte* msg, long 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, _;