aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 10:12:41 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 10:12:43 +0200
commitdda986f9552a01b3876bafc066fd10497bd190c6 (patch)
tree0b929c957549f14434bd3e151ffff44418c32bd2
parentEmpty signed commit (diff)
downloadlibsha2-dda986f9552a01b3876bafc066fd10497bd190c6.tar.gz
libsha2-dda986f9552a01b3876bafc066fd10497bd190c6.tar.bz2
libsha2-dda986f9552a01b3876bafc066fd10497bd190c6.tar.xz
Fix bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digest.c b/digest.c
index 2a611d6..fa3ebfa 100644
--- a/digest.c
+++ b/digest.c
@@ -11,7 +11,7 @@ libsha2_digest(struct libsha2_state *restrict state, const void *message_, size_
if (msglen & ~(size_t)7) {
libsha2_update(state, message, msglen & ~(size_t)7);
- message += msglen & ~(size_t)7;
+ message += msglen >> 3;
msglen &= (size_t)7;
}