From d7edf5c34b0b6fb9c343903b2ea18db1e58b5cd5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 15 Sep 2014 10:26:29 -0700 Subject: [PATCH] crypto_generichash_keybytes_min() cannot be 0, even if 0 is a valid key length --- test/default/generichash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/generichash.c b/test/default/generichash.c index 62faeb10..a560d90a 100644 --- a/test/default/generichash.c +++ b/test/default/generichash.c @@ -33,7 +33,7 @@ int main(void) assert(crypto_generichash_bytes() > 0U); assert(crypto_generichash_bytes() >= crypto_generichash_bytes_min()); assert(crypto_generichash_bytes() <= crypto_generichash_bytes_max()); - assert(crypto_generichash_keybytes_min() >= 0U); + assert(crypto_generichash_keybytes_min() > 0U); assert(crypto_generichash_keybytes_max() > 0U); assert(crypto_generichash_keybytes() > 0U); assert(crypto_generichash_keybytes() >= crypto_generichash_keybytes_min());