From 30779ee1aa7601eb4bd7409809a8a4f06d2a4360 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 13 Jan 2013 23:18:32 +0100 Subject: crypt: fix the prototype of md5_sum, sha256_sum and sha512_sum the internal sha2 hash sum functions had incorrect array size in the prototype for the message digest argument, fixed by using pointer so it is not misleading --- src/crypt/crypt_sha512.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crypt/crypt_sha512.c') diff --git a/src/crypt/crypt_sha512.c b/src/crypt/crypt_sha512.c index 0f1de814..8325d77c 100644 --- a/src/crypt/crypt_sha512.c +++ b/src/crypt/crypt_sha512.c @@ -136,7 +136,7 @@ static void sha512_init(struct sha512 *s) s->h[7] = 0x5be0cd19137e2179ULL; } -static void sha512_sum(struct sha512 *s, uint8_t md[20]) +static void sha512_sum(struct sha512 *s, uint8_t *md) { int i; -- cgit v1.2.1