diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-24 10:12:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-24 10:12:43 +0200 |
commit | dda986f9552a01b3876bafc066fd10497bd190c6 (patch) | |
tree | 0b929c957549f14434bd3e151ffff44418c32bd2 | |
parent | Empty signed commit (diff) | |
download | libsha2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |