]> git.codecow.com Git - Monocypher.git/commitdiff
put digest size in blake2b prototype
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 22 Jan 2017 14:14:31 +0000 (15:14 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 22 Jan 2017 14:14:31 +0000 (15:14 +0100)
blake2b.c
blake2b.h

index 58faa26969fe46a4619ebe48ef8ac62c3a3bf794..f9fb2693bb7dc3fca7fd9ce73dee4dd2e48decb4 100644 (file)
--- 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);
 }
index 25687f477344fb878c83e1a04f4bb7436a2066ed..dd3338b18b69fba8588d2c0cee9ca14e3effb9a4 100644 (file)
--- 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);