From ba0141a631d2fa13d2bb3d313a378bdf44498836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Sun, 2 Oct 2005 22:44:03 +0200 Subject: [PATCH] (_nettle_sha1_compress): Changed interface. Second argument is now a pointer to the input data in unaligned, big-endian form. Rev: src/nettle/sha.h:1.6 --- sha.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sha.h b/sha.h index 6dcb292c..30a531f4 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 */ -- GitLab