summaryrefslogtreecommitdiff
path: root/TestVectors
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-09 17:18:13 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-09 17:18:13 +0000
commite553818e00684e8905ede16e53aa490c153b7e7a (patch)
tree6b3af3bcbac76ed5587c17adfe5399fd2059378e /TestVectors
parentbbd05f8142921b590d6493ff37983fa687aa90e3 (diff)
downloadcryptopp-e553818e00684e8905ede16e53aa490c153b7e7a.tar.gz
add Salsa20 cipher
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@247 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'TestVectors')
-rw-r--r--TestVectors/Readme.txt1
-rw-r--r--TestVectors/all.txt1
-rwxr-xr-xTestVectors/salsa.txt33
3 files changed, 35 insertions, 0 deletions
diff --git a/TestVectors/Readme.txt b/TestVectors/Readme.txt
index 664d972..755a046 100644
--- a/TestVectors/Readme.txt
+++ b/TestVectors/Readme.txt
@@ -54,6 +54,7 @@ Plaintext - encoded string
Ciphertext - encoded string
Digest - encoded string
TruncatedSize - int, size of truncated digest in bytes
+Seek - int, seek location for random access ciphers
(more to come here)
Possible Tests
diff --git a/TestVectors/all.txt b/TestVectors/all.txt
index a0cfaa9..4419e30 100644
--- a/TestVectors/all.txt
+++ b/TestVectors/all.txt
@@ -19,3 +19,4 @@ Test: seal.txt
Test: sha.txt
Test: panama.txt
Test: aes.txt
+Test: salsa.txt
diff --git a/TestVectors/salsa.txt b/TestVectors/salsa.txt
new file mode 100755
index 0000000..d07967e
--- /dev/null
+++ b/TestVectors/salsa.txt
@@ -0,0 +1,33 @@
+AlgorithmType: SymmetricCipher
+Name: Salsa20
+Source: http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/verified.test-vectors?rev=161&view=markup
+Comment: Set 1, vector# 0
+Key: 80000000000000000000000000000000
+IV: 0000000000000000
+Plaintext: r16 00000000
+Seek: 0
+Ciphertext: 4DFA5E481DA23EA09A31022050859936DA52FCEE218005164F267CB65F5CFD7F2B4F97E0FF16924A52DF269515110A07F9E460BC65EF95DA58F740B7D1DBB0AA
+Test: Encrypt
+Seek: 448
+Ciphertext: B375703739DACED4DD4059FD71C3C47FC2F9939670FAD4A46066ADCC6A5645783308B90FFB72BE04A6B147CBE38CC0C3B9267C296A92A7C69873F9F263BE9703
+Test: Encrypt
+Seek: 192
+Plaintext: r32 00000000
+Ciphertext: DA9C1581F429E0A00F7D67E23B730676783B262E8EB43A25F55FB90B3E753AEF8C6713EC66C51881111593CCB3E8CB8F8DE124080501EEEB389C4BCB6977CF95\
+7D5789631EB4554400E1E025935DFA7B3E9039D61BDC58A8697D36815BF1985CEFDF7AE112E5BB81E37ECF0616CE7147FC08A93A367E08631F23C03B00A8DA2F
+Test: Encrypt
+Comment: Set 3, vector#243
+Key: F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112
+IV: 0000000000000000
+Plaintext: r16 00000000
+Seek: 0
+Ciphertext: B4C0AFA503BE7FC29A62058166D56F8F5D27DC246F75B9AD8760C8C39DFD87492D3B76D5D9637F009EADA14458A52DFB09815337E72672681DDDC24633750D83
+Test: Encrypt
+Seek: 448
+Ciphertext: 5A5FB5C8F0AFEA471F0318A4A2792F7AA5C67B6D6E0F0DDB79961C34E3A564BA2EECE78D9AFF45E510FEAB1030B102D39DFCECB77F5798F7D2793C0AB09C7A04
+Test: Encrypt
+Seek: 192
+Plaintext: r32 00000000
+Ciphertext: DBBA0683DF48C335A9802EEF0252256354C9F763C3FDE19131A6BB7B85040624B1D6CD4BF66D16F7482236C8602A6D58505EEDCCA0B77AED574AB583115124B9\
+F0C5F98BAE05E019764EF6B65E0694A904CB9EC9C10C297B1AB1A6052365BB78E55D3C6CB9F06184BA7D425A92E7E987757FC5D9AFD7082418DD64125CA6F2B6
+Test: Encrypt