summaryrefslogtreecommitdiff
path: root/TestVectors
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-06 22:30:11 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-06 22:30:11 -0400
commitf065f193c10865d19f042fcef79fd5f00d7af54d (patch)
tree38c3634f7ccc1d156d9b45852869430e3d8b7fc6 /TestVectors
parent71cc002fd5564750676d948287f04d4ad2910ec4 (diff)
downloadcryptopp-git-f065f193c10865d19f042fcef79fd5f00d7af54d.tar.gz
Fixed failed ChaCha tests
We switched to the pattern used for Salsa but did not update the name in the test vector file
Diffstat (limited to 'TestVectors')
-rw-r--r--TestVectors/chacha.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/TestVectors/chacha.txt b/TestVectors/chacha.txt
index 18ed115d..58f6a36c 100644
--- a/TestVectors/chacha.txt
+++ b/TestVectors/chacha.txt
@@ -1,9 +1,10 @@
AlgorithmType: SymmetricCipher
-Name: ChaCha8
+Name: ChaCha
Source: http://tools.ietf.org/html/draft-strombergson-chacha-test-vectors
Comment: TC1 - All zero key and IV (16-byte key).
Key: r16 00
IV: r8 00
+Rounds: 8
Plaintext: r64 00
Ciphertext: e28a5fa4a67f8c5defed3e6fb7303486aa8427d31419a729572d777953491120b64ab8e72b8deb85cd6aea7cb6089a101824beeb08814a428aab1fa2c816081b
Test: Encrypt
@@ -39,11 +40,12 @@ Ciphertext: 2b8f4bb3798306ca5130d47c4f8d4ed13aa0edccc1be6942090faeeca0d7599b7ff0
Test: Encrypt
AlgorithmType: SymmetricCipher
-Name: ChaCha12
+Name: ChaCha
Source: http://tools.ietf.org/html/draft-strombergson-chacha-test-vectors
Comment: TC1 - All zero key and IV (16-byte key).
Key: r16 00
IV: r8 00
+Rounds: 12
Plaintext: r64 00
Ciphertext: e1047ba9476bf8ff312c01b4345a7d8ca5792b0ad467313f1dc412b5fdce32410dea8b68bd774c36a920f092a04d3f95274fbeff97bc8491fcef37f85970b450
Test: Encrypt
@@ -79,11 +81,12 @@ Ciphertext: 64b8bdf87b828c4b6dbaf7ef698de03df8b33f635714418f9836ade59be1296946c9
Test: Encrypt
AlgorithmType: SymmetricCipher
-Name: ChaCha20
+Name: ChaCha
Source: http://tools.ietf.org/html/draft-strombergson-chacha-test-vectors
Comment: TC1 - All zero key and IV (16-byte key).
Key: r16 00
IV: r8 00
+Rounds: 20
Plaintext: r64 00
Ciphertext: 89670952608364fd00b2f90936f031c8e756e15dba04b8493d00429259b20f46cc04f111246b6c2ce066be3bfb32d9aa0fddfbc12123d4b9e44f34dca05a103f
Test: Encrypt
@@ -117,4 +120,3 @@ IV: 0x0100000000000000
Plaintext: r64 00
Ciphertext: ef3fdfd6c61578fbf5cf35bd3dd33b8009631634d21e42ac33960bd138e50d32111e4caf237ee53ca8ad6426194a88545ddc497a0b466e7d6bbdb0041b2f586b
Test: Encrypt
-