v/vlib/crypto/blake2s/testdata
2023-12-11 12:40:07 +02:00
..
blake2s.awk crypto: add blake2s and blake2b hashes (#20149) 2023-12-11 12:40:07 +02:00
blake2s_test_vectors.json crypto: add blake2s and blake2b hashes (#20149) 2023-12-11 12:40:07 +02:00
README crypto: add blake2s and blake2b hashes (#20149) 2023-12-11 12:40:07 +02:00
test_vectors.v crypto: add blake2s and blake2b hashes (#20149) 2023-12-11 12:40:07 +02:00

These test vectors are extracted from
https://github.com/BLAKE2/BLAKE2/blob/master/testvectors/blake2-kat.json

All json objects that contain '"hash": "blake2s"' have been extracted and
saved in blake2s_test_vectors.json.

Using the blake2s.awk program on blake2s_test_vectors.json, we can
generate v code that can initialize an array of TestVector structures.

awk -f blake2s.awk blake2s_test_vectors.json >test_vectors.v

Copy the contents of test_vectors.v into ../blake2s_test.v