From: Loup Vaillant Date: Sun, 22 Jan 2017 14:14:31 +0000 (+0100) Subject: put digest size in blake2b prototype X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=edb3f7378667fd1c105df46f295a101eaf366274;p=Monocypher.git put digest size in blake2b prototype --- diff --git a/blake2b.c b/blake2b.c index 58faa26..f9fb269 100644 --- a/blake2b.c +++ b/blake2b.c @@ -169,7 +169,7 @@ crypto_blake2b_general( uint8_t*out, size_t outlen, } void -crypto_blake2b(uint8_t *out, const uint8_t *in, size_t inlen) +crypto_blake2b(uint8_t out[64], const uint8_t *in, size_t inlen) { crypto_blake2b_general(out, 64, 0, 0, in, inlen); } diff --git a/blake2b.h b/blake2b.h index 25687f4..dd3338b 100644 --- a/blake2b.h +++ b/blake2b.h @@ -43,7 +43,7 @@ crypto_blake2b_general( uint8_t *out, size_t outlen, // digest // All-in-one convenience function: 64 bytes hash, no secret key. void -crypto_blake2b(uint8_t *out, const uint8_t *in, size_t inlen); +crypto_blake2b(uint8_t out[64], const uint8_t *in, size_t inlen);