From 4d147466bc16dd114e1ed583862a3a520a02b8c2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 16 May 2013 11:25:33 -0700 Subject: [PATCH] Bump generichash minimum key and output size to 128 bits. People who know what they are doing and who need a truncated output or a shorter key can still do it. But we should keep the chance for users to shoot themselves in the foot down to a minimum. --- src/libsodium/include/sodium/crypto_generichash_blake2b.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/include/sodium/crypto_generichash_blake2b.h b/src/libsodium/include/sodium/crypto_generichash_blake2b.h index bd67b4f6..269c9b64 100644 --- a/src/libsodium/include/sodium/crypto_generichash_blake2b.h +++ b/src/libsodium/include/sodium/crypto_generichash_blake2b.h @@ -6,9 +6,9 @@ #include "export.h" -#define crypto_generichash_blake2b_BYTES_MIN 1U +#define crypto_generichash_blake2b_BYTES_MIN 16U #define crypto_generichash_blake2b_BYTES_MAX 64U -#define crypto_generichash_blake2b_KEYBYTES_MIN 0U +#define crypto_generichash_blake2b_KEYBYTES_MIN 16U #define crypto_generichash_blake2b_KEYBYTES_MAX 64U #define crypto_generichash_blake2b_BLOCKBYTES 128U