aboutsummaryrefslogtreecommitdiffstats
path: root/update.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-17 21:02:39 +0200
committerMattias Andrée <m@maandree.se>2026-05-17 21:02:39 +0200
commit5fb2a5fe67521a452463e6b91cee406ec14c35a0 (patch)
treef6be3a0c9086ef7122a7d5789818bdc7c0bb1081 /update.c
parentUpdate year (diff)
downloadlibsha2-5fb2a5fe67521a452463e6b91cee406ec14c35a0.tar.gz
libsha2-5fb2a5fe67521a452463e6b91cee406ec14c35a0.tar.bz2
libsha2-5fb2a5fe67521a452463e6b91cee406ec14c35a0.tar.xz
Fix mistakesHEAD1.1.5master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/update.c b/update.c
index 3c46f28..5d2a8e6 100644
--- a/update.c
+++ b/update.c
@@ -5,7 +5,7 @@
void
libsha2_update(struct libsha2_state *restrict state, const void *restrict message_, size_t msglen)
{
- const char *restrict message = message_;
+ const unsigned char *restrict message = message_;
size_t n, off;
off = (state->message_size / 8) % state->chunk_size;
@@ -21,7 +21,7 @@ libsha2_update(struct libsha2_state *restrict state, const void *restrict messag
msglen -= n;
}
- off = libsha2_process(state, (const unsigned char *)message, msglen);
+ off = libsha2_process(state, message, msglen);
if (msglen > off)
memcpy(state->chunk, &message[off], msglen - off);