v2 / vlib / crypto / blake2s / 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": "blake2s"' have been extracted and
5saved in blake2s_test_vectors.json.
6
7Using the blake2s.awk program on blake2s_test_vectors.json, we can
8generate v code that can initialize an array of TestVector structures.
9
10awk -f blake2s.awk blake2s_test_vectors.json >test_vectors.v
11
12Copy the contents of test_vectors.v into ../blake2s_test.v
13