]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(_nettle_sha1_compress): Changed interface. Second
authorNiels Möller <nisse@lysator.liu.se>
Sun, 2 Oct 2005 20:44:03 +0000 (22:44 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 2 Oct 2005 20:44:03 +0000 (22:44 +0200)
argument is now a pointer to the input data in unaligned,
big-endian form.

Rev: src/nettle/sha.h:1.6

sha.h

diff --git a/sha.h b/sha.h
index 6dcb292cd31e053fc1ad2e80cf99f4aec436a4c3..30a531f47ca970154e3eff4de3a4b6e0b80f8d0f 100644 (file)
--- 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 */