diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-01-13 23:18:32 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-01-13 23:18:32 +0100 |
commit | 30779ee1aa7601eb4bd7409809a8a4f06d2a4360 (patch) | |
tree | ce10ba32cf7e36fbe4ce8dfb1934d0924941364b /src/crypt/crypt_sha512.c | |
parent | a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e (diff) | |
download | musl-30779ee1aa7601eb4bd7409809a8a4f06d2a4360.tar.gz musl-30779ee1aa7601eb4bd7409809a8a4f06d2a4360.tar.bz2 musl-30779ee1aa7601eb4bd7409809a8a4f06d2a4360.tar.xz musl-30779ee1aa7601eb4bd7409809a8a4f06d2a4360.zip |
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
Diffstat (limited to 'src/crypt/crypt_sha512.c')
-rw-r--r-- | src/crypt/crypt_sha512.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |