diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-17 21:02:39 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-17 21:02:39 +0200 |
| commit | 5fb2a5fe67521a452463e6b91cee406ec14c35a0 (patch) | |
| tree | f6be3a0c9086ef7122a7d5789818bdc7c0bb1081 /update.c | |
| parent | Update year (diff) | |
| download | libsha2-b5a4c67f7b6cb0ba294eafcba7ae4e3cb91f60dd.tar.gz libsha2-b5a4c67f7b6cb0ba294eafcba7ae4e3cb91f60dd.tar.bz2 libsha2-b5a4c67f7b6cb0ba294eafcba7ae4e3cb91f60dd.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | update.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
