From: Loup Vaillant Date: Wed, 31 Mar 2021 19:42:13 +0000 (+0200) Subject: Added tests vectors for Blake2b X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=1bf67d370c9e93f4c043f03ab47088a9339299f4;p=Monocypher.git 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. --- 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;