From: Niels Möller Date: Sun, 2 Oct 2005 20:44:03 +0000 (+0200) Subject: (_nettle_sha1_compress): Changed interface. Second X-Git-Tag: nettle_1.13_release_20051006~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba0141a631d2fa13d2bb3d313a378bdf44498836;p=thirdparty%2Fnettle.git (_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 --- 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 */