mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-13 17:40:41 +00:00
Add TLS-ChaCha test vectors from http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305
The implementations do not interoperate at the moment
This commit is contained in:
parent
32375fe322
commit
fff2c91b96
@ -9,7 +9,7 @@ Test: TestVectors/whrlpool.txt
|
||||
Test: TestVectors/dlies.txt
|
||||
Test: TestVectors/dsa.txt
|
||||
Test: TestVectors/dsa_1363.txt
|
||||
#Test: TestVectors/dsa_rfc6979.txt
|
||||
Test: TestVectors/dsa_rfc6979.txt
|
||||
#Test: TestVectors/ecdsa_rfc6979.txt
|
||||
Test: TestVectors/esign.txt
|
||||
Test: TestVectors/hmac.txt
|
||||
@ -26,6 +26,7 @@ Test: TestVectors/panama.txt
|
||||
Test: TestVectors/aes.txt
|
||||
Test: TestVectors/salsa.txt
|
||||
Test: TestVectors/chacha.txt
|
||||
#Test: TestVectors/tls_chacha.txt
|
||||
Test: TestVectors/vmac.txt
|
||||
Test: TestVectors/sosemanuk.txt
|
||||
Test: TestVectors/ccm.txt
|
||||
|
37
TestVectors/tls_chacha.txt
Normal file
37
TestVectors/tls_chacha.txt
Normal file
@ -0,0 +1,37 @@
|
||||
AlgorithmType: SymmetricCipher
|
||||
Name: ChaCha20
|
||||
Source: http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305
|
||||
Comment: Section 7, Test 1
|
||||
Key: 0000000000000000000000000000000000000000000000000000000000000000
|
||||
IV: 0000000000000000
|
||||
Plaintext:
|
||||
Ciphertext: 76b8e0ada0f13d90405d6ae55386bd28bdd219b8a08ded1aa836efcc8b770dc7da41597c5157488d7724e03fb8d84a376a43b8f41518a11cc387b669
|
||||
Test: Encrypt
|
||||
Comment: Section 7, Test 2
|
||||
Key: 0000000000000000000000000000000000000000000000000000000000000001
|
||||
IV: 0000000000000000
|
||||
Plaintext:
|
||||
Ciphertext: 4540f05a9f1fb296d7736e7b208e3c96eb4fe1834688d2604f450952ed432d41bbe2a0b6ea7566d2a5d1e7e20d42af2c53d792b1c43fea817e9ad275
|
||||
Test: Encrypt
|
||||
Comment: Section 7, Test 3
|
||||
Key: 0000000000000000000000000000000000000000000000000000000000000000
|
||||
IV: 0000000000000001
|
||||
Plaintext:
|
||||
Ciphertext: de9cba7bf3d69ef5e786dc63973f653a0b49e015adbff7134fcb7df137821031e85a050278a7084527214f73efc7fa5b5277062eb7a0433e445f41e3
|
||||
Test: Encrypt
|
||||
Comment: Section 7, Test 4
|
||||
Key: 0000000000000000000000000000000000000000000000000000000000000000
|
||||
IV: 0100000000000000
|
||||
Plaintext:
|
||||
Ciphertext: ef3fdfd6c61578fbf5cf35bd3dd33b8009631634d21e42ac33960bd138e50d32111e4caf237ee53ca8ad6426194a88545ddc497a0b466e7d6bbdb004
|
||||
Test: Encrypt
|
||||
Comment: Section 7, Test 5
|
||||
Key: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
||||
IV: 0001020304050607
|
||||
Plaintext:
|
||||
Ciphertext: f798a189f195e66982105ffb640bb7757f579da31602fc93ec01ac56f85ac3c134a4547b733b46413042c9440049176905d3be59ea1c53f1 \
|
||||
5916155c2be8241a38008b9a26bc35941e2444177c8ade6689de95264986d95889fb60e84629c9bd9a5acb1cc118be563eb9b3a4a472f82e \
|
||||
09a7e778492b562ef7130e88dfe031c79db9d4f7c7a899151b9a475032b63fc385245fe054e3dd5a97a5f576fe064025d3ce042c566ab2c5 \
|
||||
07b138db853e3d6959660996546cc9c4a6eafdc777c040d70eaf46f76dad3979e5c5360c3317166a1c894c94a371876a94df7628fe4eaaf2 \
|
||||
ccb27d5aaae0ad7ad0f9d4b6ad3b54098746d4524d38407a6deb
|
||||
Test: Encrypt
|
Loading…
x
Reference in New Issue
Block a user