v2 / vlib / crypto / blake2b / testdata / README
12 lines · 8 sloc · 483 bytes · e6a30dc4efec3e8cd3eb0b12c2f21b9d1e281849
Raw
1These test vectors are extracted from
2https://github.com/BLAKE2/BLAKE2/blob/master/testvectors/blake2-kat.json
3
4All json objects that contain '"hash": "blake2b"' have been extracted and
5saved in blake2b_test_vectors.json.
6
7Using the blake2b.awk program on blake2b_test_vectors.json, we can
8generate v code that can initialize an array of TestVector structures.
9
10awk -f blake2b.awk blake2b_test_vectors.json >test_vectors.v
11
12Copy the contents of test_vectors.v into ../blake2b_test.v
13