aboutsummaryrefslogtreecommitdiffstats
path: root/update.c
diff options
context:
space:
mode:
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);