From 56d370e0084511d9f9d706d0bcf2e3375b46ca25 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 21 Feb 2007 13:26:38 +0000 Subject: A lot of cleanups as well as minor API changes. Ported some changes from 1.2 to here. --- cipher/sha256.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cipher/sha256.c') diff --git a/cipher/sha256.c b/cipher/sha256.c index 7a526a85..ce53b916 100644 --- a/cipher/sha256.c +++ b/cipher/sha256.c @@ -116,7 +116,7 @@ sha224_init (void *context) } while (0) static void -transform (SHA256_CONTEXT *hd, byte *data) +transform (SHA256_CONTEXT *hd, const unsigned char *data) { static const u32 K[64] = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, @@ -196,8 +196,9 @@ transform (SHA256_CONTEXT *hd, byte *data) /* Update the message digest with the contents of INBUF with length INLEN. */ static void -sha256_write (void *context, byte *inbuf, size_t inlen) +sha256_write (void *context, const void *inbuf_arg, size_t inlen) { + const unsigned char *inbuf = inbuf_arg; SHA256_CONTEXT *hd = context; if (hd->count == 64) -- cgit v1.2.1