summaryrefslogtreecommitdiff
path: root/cipher/sha512.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-02-21 13:26:38 +0000
committerWerner Koch <wk@gnupg.org>2007-02-21 13:26:38 +0000
commit56d370e0084511d9f9d706d0bcf2e3375b46ca25 (patch)
treedb028f7ec619291d6ed5ee5929f58bf835fa4ff3 /cipher/sha512.c
parentbfb2b7eaf2808d7ba17914b91c00bfc02b4ec6c2 (diff)
downloadlibgcrypt-56d370e0084511d9f9d706d0bcf2e3375b46ca25.tar.gz
A lot of cleanups as well as minor API changes.
Ported some changes from 1.2 to here.
Diffstat (limited to 'cipher/sha512.c')
-rw-r--r--cipher/sha512.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cipher/sha512.c b/cipher/sha512.c
index 57fd180a..b70b175b 100644
--- a/cipher/sha512.c
+++ b/cipher/sha512.c
@@ -104,7 +104,7 @@ sha384_init (void *context)
* Transform the message W which consists of 16 64-bit-words
*/
static void
-transform (SHA512_CONTEXT *hd, byte *data)
+transform (SHA512_CONTEXT *hd, const unsigned char *data)
{
u64 a, b, c, d, e, f, g, h;
u64 w[80];
@@ -230,8 +230,9 @@ transform (SHA512_CONTEXT *hd, byte *data)
* of INBUF with length INLEN.
*/
static void
-sha512_write (void *context, byte *inbuf, size_t inlen)
+sha512_write (void *context, const void *inbuf_arg, size_t inlen)
{
+ const unsigned char *inbuf = inbuf_arg;
SHA512_CONTEXT *hd = context;
if (hd->count == 128)