]> git.ipfire.org Git - thirdparty/bird.git/commit
Lib: Add tests for blake2s and blake2b
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 14 Apr 2021 18:00:03 +0000 (20:00 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 6 Jun 2021 14:28:09 +0000 (16:28 +0200)
commitf1a824190c22f8159ad0f9378c2dd23e521eaf61
tree4061c1755a8f4bb307322efbb2805a99a3d1546a
parent725d9af94a6eaf3cbce1b107e36c8cf342828ea6
Lib: Add tests for blake2s and blake2b

Import the blake2-kat.h header with test vector output from the blake
reference implementation, and add tests to mac_test.c to compare the
output of the Bird MAC algorithm implementations with that reference
output.

Since the reference implementation only has test vectors for the full
output size, there are no tests for the smaller-sized output variants.
lib/blake2-kat.h [new file with mode: 0644]
lib/mac_test.c