{ "crypto": [ { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #1", "key": "79c99798ac67300bbb2704c95c341e3245f3dcb21761b98e52ff45b24f304fc4", "nonce": "b33ffd3096479bcfbc9aee49417688a0a2554f8d95389419", "ciphertext": "c6e9758160083ac604ef90e712ce6e75d7797590744e0cf060f013739c" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #2", "key": "ddf7784fee099612c40700862189d0397fcc4cc4b3cc02b5456b3a97d1186173", "nonce": "a9a04491e7bf00c3ca91ac7c2d38a777d88993a7047dfcc4", "ciphertext": "2f289d371f6f0abc3cb60d11d9b7b29adf6bc5ad843e8493e928448d" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #3", "key": "3d12800e7b014e88d68a73f0a95b04b435719936feba60473f02a9e61ae60682", "nonce": "56bed2599eac99fb27ebf4ffcb770a64772dec4d5849ea2d", "ciphertext": "a2c3c1406f33c054a92760a8e0666b84f84fa3a618f0" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #4", "key": "5f5763ff9a30c95da5c9f2a8dfd7cc6efd9dfb431812c075aa3e4f32e04f53e4", "nonce": "a5fa890efa3b9a034d377926ce0e08ee6d7faccaee41b771", "ciphertext": "8a1a5ba898bdbcff602b1036e469a18a5e45789d0e8d9837d81a2388a52b0b6a0f51891528f424c4a7f492a8dd7bce8bac19fbdbe1fb379ac0" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #5", "key": "eadc0e27f77113b5241f8ca9d6f9a5e7f09eee68d8a5cf30700563bf01060b4e", "nonce": "a171a4ef3fde7c4794c5b86170dc5a099b478f1b852f7b64", "ciphertext": "23839f61795c3cdbcee2c749a92543baeeea3cbb721402aa42e6cae140447575f2916c5d71108e3b13357eaf86f060cb" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #6", "key": "91319c9545c7c804ba6b712e22294c386fe31c4ff3d278827637b959d3dbaab2", "nonce": "410e854b2a911f174aaf1a56540fc3855851f41c65967a4e", "ciphertext": "cbe7d24177119b7fdfa8b06ee04dade4256ba7d35ffda6b89f014e479faef6" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #7", "key": "6a6d3f412fc86c4450fc31f89f64ed46baa3256ffcf8616e8c23a06c422842b6", "nonce": "6b7773fce3c2546a5db4829f53a9165f41b08faae2fb72d5", "ciphertext": "8b23e35b3cdd5f3f75525fc37960ec2b68918e8c046d8a832b9838f1546be662e54feb1203e2" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #8", "key": "d45e56368ebc7ba9be7c55cfd2da0feb633c1d86cab67cd5627514fd20c2b391", "nonce": "fd37da2db31e0c738754463edadc7dafb0833bd45da497fc", "ciphertext": "47950efa8217e3dec437454bd6b6a80a287e2570f0a48b3fa1ea3eb868be3d486f6516606d85e5643becc473b370871ab9ef8e2a728f73b92bd98e6e26ea7c8ff96ec5a9e8de95e1eee9300c" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #9", "key": "aface41a64a9a40cbc604d42bd363523bd762eb717f3e08fe2e0b4611eb4dcf3", "nonce": "6906e0383b895ab9f1cf3803f42f27c79ad47b681c552c63", "ciphertext": "a5fa7c0190792ee17675d52ad7570f1fb0892239c76d6e802c26b5b3544d13151e67513b8aaa1ac5af2d7fd0d5e4216964324838" }, { "name": "https://github.com/jedisct1/libsodium/blob/master/test/default/xchacha20.c Test Vector #10", "key": "9d23bd4149cb979ccf3c5c94dd217e9808cb0e50cd0f67812235eaaf601d6232", "nonce": "c047548266b7c370d33566a2425cbf30d82d1eaf5294109e", "ciphertext": "a21209096594de8c5667b1d13ad93f744106d054df210e4782cd396fec692d3515a20bf351eec011a92c367888bc464c32f0807acd6c203a247e0db854148468e9f96bee4cf718d68d5f637cbd5a376457788e6fae90fc31097cfc" } ], "api": { "defaults": { "key_len": 32, "nonce_len": 24, "enc_input_len": 263, "enc_buf_len": 263, "dec_input_len": 263, "dec_buf_len": 263 }, "tests": [ { "name": "Invalid key length (< 32)", "key_len": 31, "error": "ApiMisuse(\"Invalid key length\")" }, { "name": "Invalid key length (> 32)", "key_len": 33, "error": "ApiMisuse(\"Invalid key length\")" }, { "name": "Invalid nonce length (< 24)", "nonce_len": 23, "error": "ApiMisuse(\"Invalid nonce length\")" }, { "name": "Invalid nonce length (> 24)", "nonce_len": 25, "error": "ApiMisuse(\"Invalid nonce length\")" }, { "name": "Invalid buffer length (< input_len)", "enc_buf_len": 262, "dec_buf_len": 262, "error": "ApiMisuse(\"Buffer is too small\")" } ] } }