diff options
| author | Jack O'Connor <[email protected]> | 2020-06-29 16:34:17 -0400 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-06-29 16:38:53 -0400 |
| commit | 2f6f56f3477321c9e4742f1c863e45f2cfcbfb5e (patch) | |
| tree | 107f5c089f356334ee4abaeeca8c31704661f37d /test_vectors/test_vectors.json | |
| parent | f2005678f84a8222be69c54c3d5457c6c40e87d2 (diff) | |
stop being a jerk and add the context string to test_vectors.json
Diffstat (limited to 'test_vectors/test_vectors.json')
| -rw-r--r-- | test_vectors/test_vectors.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test_vectors/test_vectors.json b/test_vectors/test_vectors.json index a52b7e1..9f1a45c 100644 --- a/test_vectors/test_vectors.json +++ b/test_vectors/test_vectors.json @@ -1,6 +1,7 @@ { - "_comment": "Each test is an input length and three outputs, one for each of the hash, keyed_hash, and derive_key modes. The input in each case is filled with a 251-byte-long repeating pattern: 0, 1, 2, ..., 249, 250, 0, 1, ... The key used with keyed_hash is the 32-byte ASCII string given in the 'key' field below. For derive_key, the test input is used as the input key, and the context string is 'BLAKE3 2019-12-27 16:29:52 test vectors context'. (As good practice for following the security requirements of derive_key, test runners should make that context string a hardcoded constant, and we do not provided it in machine-readable form.) Outputs are encoded as hexadecimal. Each case is an extended output, and implementations should also check that the first 32 bytes match their default-length output.", + "_comment": "Each test is an input length and three outputs, one for each of the hash, keyed_hash, and derive_key modes. The input in each case is filled with a repeating sequence of 251 bytes: 0, 1, 2, ..., 249, 250, 0, 1, ..., and so on. The key used with keyed_hash is the 32-byte ASCII string \"whats the Elvish word for friend\", also given in the `key` field below. The context string used with derive_key is the ASCII string \"BLAKE3 2019-12-27 16:29:52 test vectors context\", also given in the `context_string` field below. Outputs are encoded as hexadecimal. Each case is an extended output, and implementations should also check that the first 32 bytes match their default-length output.", "key": "whats the Elvish word for friend", + "context_string": "BLAKE3 2019-12-27 16:29:52 test vectors context", "cases": [ { "input_len": 0, |
