summaryrefslogtreecommitdiff
path: root/TestVectors
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-23 07:57:59 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-23 07:57:59 -0400
commit916c4484a2705fb296147355028fdb31cf0ea808 (patch)
treeba0119bda09cc617fcfd6a5bf8fa3ad05fd7313d /TestVectors
parent35b874b527f659be6dc19190cce4f59b833afd10 (diff)
downloadcryptopp-git-916c4484a2705fb296147355028fdb31cf0ea808.tar.gz
Add ChaCha SSE2 implementation
Thanks to Jack Lloyd and Botan for allowing us to use the implementation. The numbers for SSE2 are very good. When compared with Salsa20 ASM the results are: * Salsa20 2.55 cpb; ChaCha/20 2.90 cpb * Salsa20/12 1.61 cpb; ChaCha/12 1.90 cpb * Salsa20/8 1.34 cpb; ChaCha/8 1.5 cpb
Diffstat (limited to 'TestVectors')
-rw-r--r--TestVectors/chacha.txt68
1 files changed, 67 insertions, 1 deletions
diff --git a/TestVectors/chacha.txt b/TestVectors/chacha.txt
index d6e90204..f17a2be9 100644
--- a/TestVectors/chacha.txt
+++ b/TestVectors/chacha.txt
@@ -96,6 +96,28 @@ Ciphertext: \
25DDA3E1C1E35D96BDB9CAD13546971B1E5FDB2E83216FEF93E5457DE48A5ED8 \
1F7E4B95484834A58B6AF8CCE9545BBBDC58929A1DEB2F6AEBF0DC2079F644E3
Test: Encrypt
+#
+Comment: All one's key and IV (16-byte key).
+Key: r16 ff
+IV: r8 ff
+Rounds: 8
+Seek: 32
+Plaintext: r64 00
+Ciphertext: \
+ 3E0FB640D76FF9C3B9CD99996E6E38FAD13F0E31C82244D33ABBC1B11E8BF12D \
+ 9A81D78E9E56604DDFAE136921F51C9D81AE15119DB8E756DD28024493EE571D
+Test: Encrypt
+#
+Comment: All one's key and IV (32-byte key).
+Key: r32 ff
+IV: r8 ff
+Rounds: 8
+Seek: 32
+Plaintext: r64 00
+Ciphertext: \
+ 445E0547D31C1623C537DF4BA85C70A9884A35BCBF3DFAB077E98B0F68135F54 \
+ 81D4933F8B322AC0CD762C27235CE2B31534E0244A9A2F1FD5E94498D47FF108
+Test: Encrypt
#################################################
@@ -197,6 +219,28 @@ Ciphertext: \
5E16F52D6857A1A602A7FC6DDD578CA868F1E51AADD3209034A4740036DE08A7 \
A906067C997F01E4E334CBA913407C7A462A968B272834D2D66DF24922F4302C
Test: Encrypt
+#
+Comment: All one's key and IV (16-byte key).
+Key: r16 ff
+IV: r8 ff
+Rounds: 12
+Seek: 32
+Plaintext: r64 00
+Ciphertext: \
+ 83D5597D7A616258EC3C5D5B30E1C5C85C5DFE2F92423B8E36870F3185B6ADD9 \
+ F34DAB6C2BC551898FBDCDFC783F09171CC8B59A8B2852983C3A9B91D29B5761
+Test: Encrypt
+#
+Comment: All one's key and IV (32-byte key).
+Key: r32 ff
+IV: r8 ff
+Rounds: 12
+Seek: 32
+Plaintext: r64 00
+Ciphertext: \
+ CAA69C5AB221A23A57EB5F345C96F4D1322D0A2FF7A9CD43401CD536639A615A \
+ 5C9429B55CA3C1B55354559669A154ACA46CD761C41AB8ACE385363B95675F06
+Test: Encrypt
#################################################
@@ -297,4 +341,26 @@ Ciphertext: \
D22CFEAEC86612E53DEFC29848C055053C6B1D462A3CF09B228E47211AFBA0AF \
4E4C2B336E6EE2F471823808523F073C1BC8785D258AC2BD580209A82A875273 \
93DF828B6A6728ABD7AAD0485BFF5CE92C8DB78B1E63929FC76A905E8C7AF310
-Test: Encrypt \ No newline at end of file
+Test: Encrypt
+#
+Comment: All one's key and IV (16-byte key).
+Key: r16 ff
+IV: r8 ff
+Rounds: 20
+Seek: 32
+Plaintext: r64 00
+Ciphertext: \
+ 399E4760B262F9D53F26D8DD19E56F5C506AE0C3619FA67FB0C408106D0203EE \
+ 40EA3CFA61FA32A2FDA8D1238A2135D9D4178775240F99007064A6A7F0C731B6
+Test: Encrypt
+#
+Comment: All one's key and IV (32-byte key).
+Key: r32 ff
+IV: r8 ff
+Rounds: 20
+Seek: 32
+Plaintext: r64 00
+Ciphertext: \
+ 3FEABC57FDE54F790C52C8AE43240B79D49042B777BFD6CB80E931270B7F50EB \
+ 5BAC2ACD86A836C5DC98C116C1217EC31D3A63A9451319F097F3B4D6DAB07787
+Test: Encrypt