From 1bf67d370c9e93f4c043f03ab47088a9339299f4 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Wed, 31 Mar 2021 21:42:13 +0200 Subject: [PATCH] Added tests vectors for Blake2b - We tested with no key, and an empty message. - We tested with no key, and a non-empty message. - We tested with a key, and a non-empty message. - We did *not* test with a key and an empty message. Well, now we do. Libsodium seems to agree with us. Phew. --- tests/gen/blake2b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gen/blake2b.c b/tests/gen/blake2b.c index 1c8510c..6685f4c 100644 --- a/tests/gen/blake2b.c +++ b/tests/gen/blake2b.c @@ -70,6 +70,7 @@ int main(void) { SODIUM_INIT; FOR(size , 0, 256) { test(size, 0 , 64 ); } + FOR(key_size , 0, 64) { test( 0 , key_size, 64 ); } FOR(key_size , 0, 64) { test(128 , key_size, 64 ); } FOR(hash_size, 1, 64) { test(128 , 0 , hash_size); } return 0; -- 2.47.3