diff --git a/sha.h b/sha.h index 6dcb292cd31e053fc1ad2e80cf99f4aec436a4c3..30a531f47ca970154e3eff4de3a4b6e0b80f8d0f 100644 --- a/sha.h +++ b/sha.h @@ -66,9 +66,9 @@ sha1_digest(struct sha1_ctx *ctx, uint8_t *digest); /* Internal compression function. STATE points to 5 uint32_t words, - and DATA points to 16 uint32_t words which are destroyed. */ + and DATA points to 64 bytes of input data, possibly unaligned. */ void -_nettle_sha1_compress(uint32_t *state, uint32_t *data); +_nettle_sha1_compress(uint32_t *state, const uint8_t *data); /* SHA256 */