diff options
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); |
