diff options
author | Jack Lloyd <[email protected]> | 2018-08-07 17:02:45 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-07 17:43:30 -0400 |
commit | 9b9c766ddb431b9262dc9db2270bbbe4c22d4add (patch) | |
tree | f9bbcdd7d91914c1a40e0dc6070538932e837155 /src/tests | |
parent | e1374697bdfb84109d1fcefb3cb76b11d9309ac8 (diff) |
Add support for XChaCha
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/data/stream/chacha.vec | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/data/stream/chacha.vec b/src/tests/data/stream/chacha.vec index 7b382082f..50b8dc4bf 100644 --- a/src/tests/data/stream/chacha.vec +++ b/src/tests/data/stream/chacha.vec @@ -473,3 +473,22 @@ Seek = 4294967232 Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F Nonce = 000102030405060708090A0B Out = DBF81BB406517BE1A54F4740E5DDDF2B7965747B757FA9D5B7EDD6B27FEDDB89D5D47F9B24E57DF393017A5079F61852CD8B86859884120AF867D25D3B259E2B + +# XChaCha tests from https://github.com/aead/chacha20 + +Key = 0000000000000000000000000000000000000000000000000000000000000000 +Nonce = 000000000000000000000000000000000000000000000000 +Out = bcd02a18bf3f01d19292de30a7a8fdaca4b65e50a6002cc72cd6d2f7c91ac3d5728f83e0aad2bfcf9abd2d2db58faedd65015dd83fc09b131e271043019e8e0f789e9689e5208d7fd9e1f3c5b5341f48ef18a13e418998addadd97a3693a987f8e82ecd5c1433bfed1af49750c0f1ff29c4174a05b119aa3a9e8333812e0c0fea49e1ee0134a70a9d49c24e0cbd8fc3ba27e97c3322ad487f778f8dc6a122fa59cbe33e7 + +Key = 8000000000000000000000000000000000000000000000000000000000000000 +Nonce = 000000000000000000000000000000000000000000000000 +Out = ccfe8a9e93431bd582f07b3eb0f4a7afc22ef39337ddd84f0d3545b318a315a32b3abb96de0fc6acde48b248fe8a80e6fa72bfcdf9d8d2656b991676476f052d9373080e30d8c0e217126a3c64402e1d9404ba9d6b8ce4ad5ac9693f3660638c26ea2cd1b4a8d3348c1e179ead353ee72fee558e9994c51a27195e287d00ec2f8cfef8866d1f98714f40cbe4e18cebabf3cd1fd3bb65506e5dce1ad09f438bffe2c96d7f2f0827c8c3f2ca59dbaa393785c6b8da7c69c8a4a63ffd113dcc93de8f52dbcfaed5e4cbcc1dc310b1352868fab7b14d930a9f7a7d47bed0eaf5b151f6dac8bd45510698bdc205d70b944ea5450888dd3ec753da9708bf06c0714822dda74f285c361abd0cd1071324c253dc421905edca36e8808bffef091e7dbdecebdad98cf70b7cede72e9c3c4108e5b32ffae0f42151a8196939d8e3b8384be1 + +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +Nonce = 000102030405060708090a0b0c0d0e0f1011121314151617 +Out = e53a61cef151e81401067de33adfc02e90ab205361b49b539fda7f0e63b1bc7d68fbee56c9c20c39960e595f3ea76c979804d08cfa728e66cb5f766b840ec61f9ec20f7f90d28dae334426cecb52a8e84b4728a5fdd61deb7f1a3fb63dadf5595e06b6e441670964d595ae59cf21536271bae2594774fb19079b933d8fe744f4 + +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +Nonce = 000102030405060708090a0b0c0d0e0f1011121314151617 +Seek = 66 +Out = 0f7f90d28dae334426cecb52a8e84b4728a5fdd61deb7f1a3fb63dadf5595e06b6e441670964d595ae59cf21536271bae2594774fb19079b933d8fe744f4 |