Permalink
Browse files

Modify tests to use Symbols instead of constants.

  • Loading branch information...
1 parent e3f67a4 commit 272921b463fdc871e9ee45d8a33428f920f4b513 @dark-panda committed Mar 25, 2010
Showing with 428 additions and 433 deletions.
  1. +7 −7 test/data/ciphers/3desval.dat
  2. +6 −6 test/data/ciphers/3wayval.dat
  3. +2 −2 test/data/ciphers/arc4.dat
  4. +2 −2 test/data/ciphers/blowfish.dat
  5. +2 −2 test/data/ciphers/camellia.dat
  6. +5 −5 test/data/ciphers/cast128v.dat
  7. +5 −5 test/data/ciphers/cast256v.dat
  8. +198 −198 test/data/ciphers/descert.dat
  9. +9 −9 test/data/ciphers/diamond.dat
  10. +10 −10 test/data/ciphers/gostval.dat
  11. +13 −13 test/data/ciphers/ideaval.dat
  12. +11 −11 test/data/ciphers/marsval.dat
  13. +2 −2 test/data/ciphers/panamac.dat
  14. +10 −10 test/data/ciphers/rc2val.dat
  15. +7 −7 test/data/ciphers/rc5val.dat
  16. +8 −8 test/data/ciphers/rc6val.dat
  17. +11 −11 test/data/ciphers/rijndael.dat
  18. +27 −27 test/data/ciphers/saferval.dat
  19. +1 −1 test/data/ciphers/seal.dat
  20. +11 −11 test/data/ciphers/serpentv.dat
  21. +1 −1 test/data/ciphers/shacal2.dat
  22. +9 −9 test/data/ciphers/sharkval.dat
  23. +1 −1 test/data/ciphers/skipjack.dat
  24. +10 −10 test/data/ciphers/squareva.dat
  25. +11 −11 test/data/ciphers/twofishv.dat
  26. +1 −1 test/data/digests/adler32.dat
  27. +1 −1 test/data/digests/crc32.dat
  28. +2 −2 test/data/digests/haval.dat
  29. +23 −23 test/data/digests/havalcer.dat
  30. +1 −1 test/data/digests/md2.dat
  31. +2 −2 test/data/digests/md4.dat
  32. +1 −1 test/data/digests/md5.dat
  33. +3 −3 test/data/digests/panamah.dat
  34. +4 −4 test/data/digests/ripemd.dat
  35. +4 −4 test/data/digests/sha.dat
  36. +2 −2 test/data/digests/tiger.dat
  37. +1 −1 test/data/digests/whirlpool.dat
  38. +4 −9 test/test_helper.rb
View
14 test/data/ciphers/3desval.dat
@@ -1,7 +1,7 @@
-fields key_hex plaintext_hex ciphertext_hex
-algorithm cipher DES_EDE2
-test 0123456789abcdeffedcba9876543210 0123456789abcde7 7f1d0a77826b8aff
-algorithm cipher DES_EDE3
-test 0123456789abcdeffedcba987654321089abcdef01234567 0123456789abcde7 de0b7c06ae5e0ed5
-algorithm cipher DES_XEX3
-test 0123456789abcdef01010101010101011011121314151617 94dbe082549a14ef 9011121314151617
+fields key_hex plaintext_hex ciphertext_hex
+algorithm cipher des_ede2
+test 0123456789abcdeffedcba9876543210 0123456789abcde7 7f1d0a77826b8aff
+algorithm cipher des_ede3
+test 0123456789abcdeffedcba987654321089abcdef01234567 0123456789abcde7 de0b7c06ae5e0ed5
+algorithm cipher des_xex3
+test 0123456789abcdef01010101010101011011121314151617 94dbe082549a14ef 9011121314151617
View
12 test/data/ciphers/3wayval.dat
@@ -1,6 +1,6 @@
-algorithm cipher THREEWAY
-fields key_hex plaintext_hex ciphertext_hex
-test 000000000000000000000000 000000010000000100000001 4059c76e83ae9dc4ad21ecf7
-test 000000060000000500000004 000000030000000200000001 d2f05b5ed6144138cab920cd
-test def01234456789abbcdef012 234567899abcdef001234567 0aa55dbb9cdddb6d7cdb76b2
-test d2f05b5ed6144138cab920cd 4059c76e83ae9dc4ad21ecf7 478ea8716b13f17c15b155ed
+algorithm cipher threeway
+fields key_hex plaintext_hex ciphertext_hex
+test 000000000000000000000000 000000010000000100000001 4059c76e83ae9dc4ad21ecf7
+test 000000060000000500000004 000000030000000200000001 d2f05b5ed6144138cab920cd
+test def01234456789abbcdef012 234567899abcdef001234567 0aa55dbb9cdddb6d7cdb76b2
+test d2f05b5ed6144138cab920cd 4059c76e83ae9dc4ad21ecf7 478ea8716b13f17c15b155ed
View
4 test/data/ciphers/arc4.dat
@@ -1,8 +1,8 @@
-algorithm cipher ARC4
+algorithm cipher arc4
fields key_hex plaintext_hex ciphertext_hex_cont
test 0123456789abcdef 0123456789abcdef 75b7878099e0c596
test 0123456789abcdef 0000000000000000 7494c2e7104b0879
test 0000000000000000 0000000000000000 de188941a3375d3a
test ef012345 00000000000000000000 d6a141a7ec3c38dfbd61
fields key_hex plaintext_hex plaintext_repeat ciphertext_hex_cont
-test 0123456789abcdef 01 512 7595c3e6114a09780c4ad452338e1ffd9a1be949 8f813d76533449b6778dcad8c78a8d2ba9ac6608 5d0e53d59c26c2d1c490c1ebbe0ce66d1b6b1b13 b6b919b847c25a91447a95e75e4ef16779cde8bf 0a95850e32af9689444fd377108f98fdcbd4e726 567500990bcc7e0ca3c4aaa304a387d20f3b8fbb cd42a1bd311d7a4303dda5ab078896ae80c18b0a f66dff319616eb784e495ad2ce90d7f772a81747 b65f62093b1e0db9e5ba532fafec47508323e671 327df9444432cb7367cec82f5d44c0d00b67d650 a075cd4b70dedd77eb9b10231b6b5b741347396d 62897421d43df9b42e446e358e9c11a9b2184ecb ef0cd8e7a877ef968f1390ec9b3d35a5585cb009 290e2fcde7b5ec66d9084be44055a619d9dd7fc3 166f9487f7cb272912426445998514c15d53a18c 864ce3a2b7555793988126520eacf2e3066e230c 91bee4dd5304f5fd0405b35bd99c73135d3d9bc3 35ee049ef69b3867bf2d7bd1eaa595d8bfc0066f f8d31509eb0c6caa006c807a623ef84c3d33c195 d23ee320c40de0558157c822d4b8c569d849aed5 9d4e0fd7f379586b4b7ff684ed6a189f7486d49b 9c4bad9ba24b96abf924372c8a8fffb10d553549 00a77a3db5f205e1b99fcd8660863a159ad4abe4 0fa48934163ddde542a6585540fd683cbfd8c00f 12129a284deacc4cdefe58be7137541c047126c8 d49e2755ab181ab7e940b0c0
+test 0123456789abcdef 01 512 7595c3e6114a09780c4ad452338e1ffd9a1be949 8f813d76533449b6778dcad8c78a8d2ba9ac6608 5d0e53d59c26c2d1c490c1ebbe0ce66d1b6b1b13 b6b919b847c25a91447a95e75e4ef16779cde8bf 0a95850e32af9689444fd377108f98fdcbd4e726 567500990bcc7e0ca3c4aaa304a387d20f3b8fbb cd42a1bd311d7a4303dda5ab078896ae80c18b0a f66dff319616eb784e495ad2ce90d7f772a81747 b65f62093b1e0db9e5ba532fafec47508323e671 327df9444432cb7367cec82f5d44c0d00b67d650 a075cd4b70dedd77eb9b10231b6b5b741347396d 62897421d43df9b42e446e358e9c11a9b2184ecb ef0cd8e7a877ef968f1390ec9b3d35a5585cb009 290e2fcde7b5ec66d9084be44055a619d9dd7fc3 166f9487f7cb272912426445998514c15d53a18c 864ce3a2b7555793988126520eacf2e3066e230c 91bee4dd5304f5fd0405b35bd99c73135d3d9bc3 35ee049ef69b3867bf2d7bd1eaa595d8bfc0066f f8d31509eb0c6caa006c807a623ef84c3d33c195 d23ee320c40de0558157c822d4b8c569d849aed5 9d4e0fd7f379586b4b7ff684ed6a189f7486d49b 9c4bad9ba24b96abf924372c8a8fffb10d553549 00a77a3db5f205e1b99fcd8660863a159ad4abe4 0fa48934163ddde542a6585540fd683cbfd8c00f 12129a284deacc4cdefe58be7137541c047126c8 d49e2755ab181ab7e940b0c0
View
4 test/data/ciphers/blowfish.dat
@@ -1,5 +1,5 @@
-algorithm cipher BLOWFISH
+algorithm cipher blowfish
fields key plaintext ciphertext_hex
test abcdefghijklmnopqrstuvwxyz BLOWFISH 324ed0fef413a203
fields key plaintext_hex ciphertext_hex
-test Who is John Galt? fedcba9876543210 cc91732b8022f684
+test Who is John Galt? fedcba9876543210 cc91732b8022f684
View
4 test/data/ciphers/camellia.dat
@@ -1,7 +1,7 @@
-algorithm cipher CAMELLIA
+algorithm cipher camellia
fields key_hex plaintext_hex ciphertext_hex
test 80000000000000000000000000000000 00000000000000000000000000000000 6c227f749319a3aa7da235a9bba05a2c
test 00000000000000000000000000000000 80000000000000000000000000000000 07923a39eb0a817d1c4d87bdb82d1f1c
test 00000000000000000000000000000000 00000000000000000000000000000000 3d028025b156327c17f762c1f2cbca71
test a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5 a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5 1f55093c234648c5c9c781e8c9fd42c4
-test fefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefe fefefefefefefefefefefefefefefefe acdbb0f5a00e3cf63a89d9c09b44a058
+test fefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefe fefefefefefefefefefefefefefefefe acdbb0f5a00e3cf63a89d9c09b44a058
View
10 test/data/ciphers/cast128v.dat
@@ -1,5 +1,5 @@
-algorithm cipher CAST128
-fields key_hex plaintext_hex ciphertext_hex
-test 0123456712345678234567893456789a 0123456789abcdef 238b4fe5847e44b2
-test 01234567123456782345 0123456789abcdef eb6a711a2c02271b
-test 0123456712 0123456789abcdef 7ac816d16e9b302e
+algorithm cipher cast128
+fields key_hex plaintext_hex ciphertext_hex
+test 0123456712345678234567893456789a 0123456789abcdef 238b4fe5847e44b2
+test 01234567123456782345 0123456789abcdef eb6a711a2c02271b
+test 0123456712 0123456789abcdef 7ac816d16e9b302e
View
10 test/data/ciphers/cast256v.dat
@@ -1,5 +1,5 @@
-algorithm cipher CAST256
-fields key_hex plaintext_hex ciphertext_hex
-test 2342bb9efa38542c0af75647f29f615d 00000000000000000000000000000000 c842a08972b43d20836c91d1b7530f6b
-test 2342bb9efa38542cbed0ac83940ac298bac77a7717942863 00000000000000000000000000000000 1b386c0210dcadcbdd0e41aa08a7a7e8
-test 2342bb9efa38542cbed0ac83940ac2988d7c47ce264908461cc1b5137ae6b604 00000000000000000000000000000000 4f6a2038286897b9c9870136553317fa
+algorithm cipher cast256
+fields key_hex plaintext_hex ciphertext_hex
+test 2342bb9efa38542c0af75647f29f615d 00000000000000000000000000000000 c842a08972b43d20836c91d1b7530f6b
+test 2342bb9efa38542cbed0ac83940ac298bac77a7717942863 00000000000000000000000000000000 1b386c0210dcadcbdd0e41aa08a7a7e8
+test 2342bb9efa38542cbed0ac83940ac2988d7c47ce264908461cc1b5137ae6b604 00000000000000000000000000000000 4f6a2038286897b9c9870136553317fa
View
396 test/data/ciphers/descert.dat
@@ -1,198 +1,198 @@
-algorithm cipher DES
-fields key_hex plaintext_hex ciphertext_hex
-test 0101010101010101 95f8a5e5dd31d900 8000000000000000
-test 0101010101010101 dd7f121ca5015619 4000000000000000
-test 0101010101010101 2e8653104f3834ea 2000000000000000
-test 0101010101010101 4bd388ff6cd81d4f 1000000000000000
-test 0101010101010101 20b9e767b2fb1456 0800000000000000
-test 0101010101010101 55579380d77138ef 0400000000000000
-test 0101010101010101 6cc5defaaf04512f 0200000000000000
-test 0101010101010101 0d9f279ba5d87260 0100000000000000
-test 0101010101010101 d9031b0271bd5a0a 0080000000000000
-test 0101010101010101 424250b37c3dd951 0040000000000000
-test 0101010101010101 b8061b7ecd9a21e5 0020000000000000
-test 0101010101010101 f15d0f286b65bd28 0010000000000000
-test 0101010101010101 add0cc8d6e5deba1 0008000000000000
-test 0101010101010101 e6d5f82752ad63d1 0004000000000000
-test 0101010101010101 ecbfe3bd3f591a5e 0002000000000000
-test 0101010101010101 f356834379d165cd 0001000000000000
-test 0101010101010101 2b9f982f20037fa9 0000800000000000
-test 0101010101010101 889de068a16f0be6 0000400000000000
-test 0101010101010101 e19e275d846a1298 0000200000000000
-test 0101010101010101 329a8ed523d71aec 0000100000000000
-test 0101010101010101 e7fce22557d23c97 0000080000000000
-test 0101010101010101 12a9f5817ff2d65d 0000040000000000
-test 0101010101010101 a484c3ad38dc9c19 0000020000000000
-test 0101010101010101 fbe00a8a1ef8ad72 0000010000000000
-test 0101010101010101 750d079407521363 0000008000000000
-test 0101010101010101 64feed9c724c2faf 0000004000000000
-test 0101010101010101 f02b263b328e2b60 0000002000000000
-test 0101010101010101 9d64555a9a10b852 0000001000000000
-test 0101010101010101 d106ff0bed5255d7 0000000800000000
-test 0101010101010101 e1652c6b138c64a5 0000000400000000
-test 0101010101010101 e428581186ec8f46 0000000200000000
-test 0101010101010101 aeb5f5ede22d1a36 0000000100000000
-test 0101010101010101 e943d7568aec0c5c 0000000080000000
-test 0101010101010101 df98c8276f54b04b 0000000040000000
-test 0101010101010101 b160e4680f6c696f 0000000020000000
-test 0101010101010101 fa0752b07d9c4ab8 0000000010000000
-test 0101010101010101 ca3a2b036dbc8502 0000000008000000
-test 0101010101010101 5e0905517bb59bcf 0000000004000000
-test 0101010101010101 814eeb3b91d90726 0000000002000000
-test 0101010101010101 4d49db1532919c9f 0000000001000000
-test 0101010101010101 25eb5fc3f8cf0621 0000000000800000
-test 0101010101010101 ab6a20c0620d1c6f 0000000000400000
-test 0101010101010101 79e90dbc98f92cca 0000000000200000
-test 0101010101010101 866ecedd8072bb0e 0000000000100000
-test 0101010101010101 8b54536f2f3e64a8 0000000000080000
-test 0101010101010101 ea51d3975595b86b 0000000000040000
-test 0101010101010101 caffc6ac4542de31 0000000000020000
-test 0101010101010101 8dd45a2ddf90796c 0000000000010000
-test 0101010101010101 1029d55e880ec2d0 0000000000008000
-test 0101010101010101 5d86cb23639dbea9 0000000000004000
-test 0101010101010101 1d1ca853ae7c0c5f 0000000000002000
-test 0101010101010101 ce332329248f3228 0000000000001000
-test 0101010101010101 8405d1abe24fb942 0000000000000800
-test 0101010101010101 e643d78090ca4207 0000000000000400
-test 0101010101010101 48221b9937748a23 0000000000000200
-test 0101010101010101 dd7c0bbd61fafd54 0000000000000100
-test 0101010101010101 2fbc291a570db5c4 0000000000000080
-test 0101010101010101 e07c30d7e4e26e12 0000000000000040
-test 0101010101010101 0953e2258e8e90a1 0000000000000020
-test 0101010101010101 5b711bc4ceebf2ee 0000000000000010
-test 0101010101010101 cc083f1e6d9e85f6 0000000000000008
-test 0101010101010101 d2fd8867d50d2dfe 0000000000000004
-test 0101010101010101 06e7ea22ce92708f 0000000000000002
-test 0101010101010101 166b40b44aba4bd6 0000000000000001
-test 8001010101010101 0000000000000000 95a8d72813daa94d
-test 4001010101010101 0000000000000000 0eec1487dd8c26d5
-test 2001010101010101 0000000000000000 7ad16ffb79c45926
-test 1001010101010101 0000000000000000 d3746294ca6a6cf3
-test 0801010101010101 0000000000000000 809f5f873c1fd761
-test 0401010101010101 0000000000000000 c02faffec989d1fc
-test 0201010101010101 0000000000000000 4615aa1d33e72f10
-test 0180010101010101 0000000000000000 2055123350c00858
-test 0140010101010101 0000000000000000 df3b99d6577397c8
-test 0120010101010101 0000000000000000 31fe17369b5288c9
-test 0110010101010101 0000000000000000 dfdd3cc64dae1642
-test 0108010101010101 0000000000000000 178c83ce2b399d94
-test 0104010101010101 0000000000000000 50f636324a9b7f80
-test 0102010101010101 0000000000000000 a8468ee3bc18f06d
-test 0101800101010101 0000000000000000 a2dc9e92fd3cde92
-test 0101400101010101 0000000000000000 cac09f797d031287
-test 0101200101010101 0000000000000000 90ba680b22aeb525
-test 0101100101010101 0000000000000000 ce7a24f350e280b6
-test 0101080101010101 0000000000000000 882bff0aa01a0b87
-test 0101040101010101 0000000000000000 25610288924511c2
-test 0101020101010101 0000000000000000 c71516c29c75d170
-test 0101018001010101 0000000000000000 5199c29a52c9f059
-test 0101014001010101 0000000000000000 c22f0a294a71f29f
-test 0101012001010101 0000000000000000 ee371483714c02ea
-test 0101011001010101 0000000000000000 a81fbd448f9e522f
-test 0101010801010101 0000000000000000 4f644c92e192dfed
-test 0101010401010101 0000000000000000 1afa9a66a6df92ae
-test 0101010201010101 0000000000000000 b3c1cc715cb879d8
-test 0101010180010101 0000000000000000 19d032e64ab0bd8b
-test 0101010140010101 0000000000000000 3cfaa7a7dc8720dc
-test 0101010120010101 0000000000000000 b7265f7f447ac6f3
-test 0101010110010101 0000000000000000 9db73b3c0d163f54
-test 0101010108010101 0000000000000000 8181b65babf4a975
-test 0101010104010101 0000000000000000 93c9b64042eaa240
-test 0101010102010101 0000000000000000 5570530829705592
-test 0101010101800101 0000000000000000 8638809e878787a0
-test 0101010101400101 0000000000000000 41b9a79af79ac208
-test 0101010101200101 0000000000000000 7a9be42f2009a892
-test 0101010101100101 0000000000000000 29038d56ba6d2745
-test 0101010101080101 0000000000000000 5495c6abf1e5df51
-test 0101010101040101 0000000000000000 ae13dbd561488933
-test 0101010101020101 0000000000000000 024d1ffa8904e389
-test 0101010101018001 0000000000000000 d1399712f99bf02e
-test 0101010101014001 0000000000000000 14c1d7c1cffec79e
-test 0101010101012001 0000000000000000 1de5279dae3bed6f
-test 0101010101011001 0000000000000000 e941a33f85501303
-test 0101010101010801 0000000000000000 da99dbbc9a03f379
-test 0101010101010401 0000000000000000 b7fc92f91d8e92e9
-test 0101010101010201 0000000000000000 ae8e5caa3ca04e85
-test 0101010101010180 0000000000000000 9cc62df43b6eed74
-test 0101010101010140 0000000000000000 d863dbb5c59a91a0
-test 0101010101010120 0000000000000000 a1ab2190545b91d7
-test 0101010101010110 0000000000000000 0875041e64c570f7
-test 0101010101010108 0000000000000000 5a594528bebef1cc
-test 0101010101010104 0000000000000000 fcdb3291de21f0c0
-test 0101010101010102 0000000000000000 869efd7f9f265a09
-test 1046913489980131 0000000000000000 88d55e54f54c97b4
-test 1007103489988020 0000000000000000 0c0cc00c83ea48fd
-test 10071034c8980120 0000000000000000 83bc8ef3a6570183
-test 1046103489988020 0000000000000000 df725dcad94ea2e9
-test 1086911519190101 0000000000000000 e652b53b550be8b0
-test 1086911519580101 0000000000000000 af527120c485cbb0
-test 5107b01519580101 0000000000000000 0f04ce393db926d5
-test 1007b01519190101 0000000000000000 c9f00ffc74079067
-test 3107915498080101 0000000000000000 7cfd82a593252b4e
-test 3107919498080101 0000000000000000 cb49a2f9e91363e3
-test 10079115b9080140 0000000000000000 00b588be70d23f56
-test 3107911598090140 0000000000000000 406a9a6ab43399ae
-test 1007d01589980101 0000000000000000 6cb773611dca9ada
-test 9107911589980101 0000000000000000 67fd21c17dbb5d70
-test 9107d01589190101 0000000000000000 9592cb4110430787
-test 1007d01598980120 0000000000000000 a6b7ff68a318ddd3
-test 1007940498190101 0000000000000000 4d102196c914ca16
-test 0107910491190401 0000000000000000 2dfa9f4573594965
-test 0107910491190101 0000000000000000 b46604816c0e0774
-test 0107940491190401 0000000000000000 6e7e6221a4f34e87
-test 19079210981a0101 0000000000000000 aa85e74643233199
-test 1007911998190801 0000000000000000 2e5a19db4d1962d6
-test 10079119981a0801 0000000000000000 23a866a809d30894
-test 1007921098190101 0000000000000000 d812d961f017d320
-test 100791159819010b 0000000000000000 055605816e58608f
-test 1004801598190101 0000000000000000 abd88e8b1b7716f1
-test 1004801598190102 0000000000000000 537ac95be69da1e1
-test 1004801598190108 0000000000000000 aed0f6ae3c25cdd8
-test 1002911598100104 0000000000000000 b3e35a5ee53e7b8d
-test 1002911598190104 0000000000000000 61c79c71921a2ef8
-test 1002911598100201 0000000000000000 e2f5728f0995013c
-test 1002911698100101 0000000000000000 1aeac39a61f0a464
-test 7ca110454a1a6e57 01a1d6d039776742 690f5b0d9a26939b
-test 0131d9619dc1376e 5cd54ca83def57da 7a389d10354bd271
-test 07a1133e4a0b2686 0248d43806f67172 868ebb51cab4599a
-test 3849674c2602319e 51454b582ddf440a 7178876e01f19b2a
-test 04b915ba43feb5b6 42fd443059577fa2 af37fb421f8c4095
-test 0113b970fd34f2ce 059b5e0851cf143a 86a560f10ec6d85b
-test 0170f175468fb5e6 0756d8e0774761d2 0cd3da020021dc09
-test 43297fad38e373fe 762514b829bf486a ea676b2cb7db2b7a
-test 07a7137045da2a16 3bdd119049372802 dfd64a815caf1a0f
-test 04689104c2fd3b2f 26955f6835af609a 5c513c9c4886c088
-test 37d06bb516cb7546 164d5e404f275232 0a2aeeae3ff4ab77
-test 1f08260d1ac2465e 6b056e18759f5cca ef1bf03e5dfa575a
-test 584023641aba6176 004bd6ef09176062 88bf0db6d70dee56
-test 025816164629b007 480d39006ee762f2 a1f9915541020b56
-test 49793ebc79b3258f 437540c8698f3cfa 6fbf1cafcffd0556
-test 4fb05e1515ab73a7 072d43a077075292 2f22e49bab7ca1ac
-test 49e95d6d4ca229bf 02fe55778117f12a 5a6b612cc26cce4a
-test 018310dc409b26d6 1d9d5c5018f728c2 5f4c038ed12b2e41
-test 1c587f1c13924fef 305532286d6f295a 63fac0d034d9f793
-
-
-note CBC mode, zeroes padding
-fields key_hex plaintext_hex iv_hex block_mode padding ciphertext_hex
-test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef CBC ZEROES e5c7cdde872bf27c43e934008c389c0f683788499a7c05f6
-
-note CBC mode, PKCS padding
-fields key_hex plaintext_hex iv_hex block_mode padding ciphertext_hex
-test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef CBC PKCS e5c7cdde872bf27c43e934008c389c0f683788499a7c05f662c16a27e4fcf277
-
-note CBC CTR mode
-fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
-test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef CBC_CTS e5c7cdde872bf27c683788499a7c05f643e934008c389c0f
-
-note CFB mode
-fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
-test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef CFB f3096249c7f46e51a69e839b1a92f78403467133898ea622
-
-note OFB mode
-fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
-test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef OFB f3096249c7f46e5135f24a242eeb3d3f3d6d5be3255af8c3
-
-note COUNTER mode
-fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
-test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef COUNTER f3096249c7f46e51163a8ca0ffc94c27fa2f80f480b86f75
+algorithm cipher des
+fields key_hex plaintext_hex ciphertext_hex
+test 0101010101010101 95f8a5e5dd31d900 8000000000000000
+test 0101010101010101 dd7f121ca5015619 4000000000000000
+test 0101010101010101 2e8653104f3834ea 2000000000000000
+test 0101010101010101 4bd388ff6cd81d4f 1000000000000000
+test 0101010101010101 20b9e767b2fb1456 0800000000000000
+test 0101010101010101 55579380d77138ef 0400000000000000
+test 0101010101010101 6cc5defaaf04512f 0200000000000000
+test 0101010101010101 0d9f279ba5d87260 0100000000000000
+test 0101010101010101 d9031b0271bd5a0a 0080000000000000
+test 0101010101010101 424250b37c3dd951 0040000000000000
+test 0101010101010101 b8061b7ecd9a21e5 0020000000000000
+test 0101010101010101 f15d0f286b65bd28 0010000000000000
+test 0101010101010101 add0cc8d6e5deba1 0008000000000000
+test 0101010101010101 e6d5f82752ad63d1 0004000000000000
+test 0101010101010101 ecbfe3bd3f591a5e 0002000000000000
+test 0101010101010101 f356834379d165cd 0001000000000000
+test 0101010101010101 2b9f982f20037fa9 0000800000000000
+test 0101010101010101 889de068a16f0be6 0000400000000000
+test 0101010101010101 e19e275d846a1298 0000200000000000
+test 0101010101010101 329a8ed523d71aec 0000100000000000
+test 0101010101010101 e7fce22557d23c97 0000080000000000
+test 0101010101010101 12a9f5817ff2d65d 0000040000000000
+test 0101010101010101 a484c3ad38dc9c19 0000020000000000
+test 0101010101010101 fbe00a8a1ef8ad72 0000010000000000
+test 0101010101010101 750d079407521363 0000008000000000
+test 0101010101010101 64feed9c724c2faf 0000004000000000
+test 0101010101010101 f02b263b328e2b60 0000002000000000
+test 0101010101010101 9d64555a9a10b852 0000001000000000
+test 0101010101010101 d106ff0bed5255d7 0000000800000000
+test 0101010101010101 e1652c6b138c64a5 0000000400000000
+test 0101010101010101 e428581186ec8f46 0000000200000000
+test 0101010101010101 aeb5f5ede22d1a36 0000000100000000
+test 0101010101010101 e943d7568aec0c5c 0000000080000000
+test 0101010101010101 df98c8276f54b04b 0000000040000000
+test 0101010101010101 b160e4680f6c696f 0000000020000000
+test 0101010101010101 fa0752b07d9c4ab8 0000000010000000
+test 0101010101010101 ca3a2b036dbc8502 0000000008000000
+test 0101010101010101 5e0905517bb59bcf 0000000004000000
+test 0101010101010101 814eeb3b91d90726 0000000002000000
+test 0101010101010101 4d49db1532919c9f 0000000001000000
+test 0101010101010101 25eb5fc3f8cf0621 0000000000800000
+test 0101010101010101 ab6a20c0620d1c6f 0000000000400000
+test 0101010101010101 79e90dbc98f92cca 0000000000200000
+test 0101010101010101 866ecedd8072bb0e 0000000000100000
+test 0101010101010101 8b54536f2f3e64a8 0000000000080000
+test 0101010101010101 ea51d3975595b86b 0000000000040000
+test 0101010101010101 caffc6ac4542de31 0000000000020000
+test 0101010101010101 8dd45a2ddf90796c 0000000000010000
+test 0101010101010101 1029d55e880ec2d0 0000000000008000
+test 0101010101010101 5d86cb23639dbea9 0000000000004000
+test 0101010101010101 1d1ca853ae7c0c5f 0000000000002000
+test 0101010101010101 ce332329248f3228 0000000000001000
+test 0101010101010101 8405d1abe24fb942 0000000000000800
+test 0101010101010101 e643d78090ca4207 0000000000000400
+test 0101010101010101 48221b9937748a23 0000000000000200
+test 0101010101010101 dd7c0bbd61fafd54 0000000000000100
+test 0101010101010101 2fbc291a570db5c4 0000000000000080
+test 0101010101010101 e07c30d7e4e26e12 0000000000000040
+test 0101010101010101 0953e2258e8e90a1 0000000000000020
+test 0101010101010101 5b711bc4ceebf2ee 0000000000000010
+test 0101010101010101 cc083f1e6d9e85f6 0000000000000008
+test 0101010101010101 d2fd8867d50d2dfe 0000000000000004
+test 0101010101010101 06e7ea22ce92708f 0000000000000002
+test 0101010101010101 166b40b44aba4bd6 0000000000000001
+test 8001010101010101 0000000000000000 95a8d72813daa94d
+test 4001010101010101 0000000000000000 0eec1487dd8c26d5
+test 2001010101010101 0000000000000000 7ad16ffb79c45926
+test 1001010101010101 0000000000000000 d3746294ca6a6cf3
+test 0801010101010101 0000000000000000 809f5f873c1fd761
+test 0401010101010101 0000000000000000 c02faffec989d1fc
+test 0201010101010101 0000000000000000 4615aa1d33e72f10
+test 0180010101010101 0000000000000000 2055123350c00858
+test 0140010101010101 0000000000000000 df3b99d6577397c8
+test 0120010101010101 0000000000000000 31fe17369b5288c9
+test 0110010101010101 0000000000000000 dfdd3cc64dae1642
+test 0108010101010101 0000000000000000 178c83ce2b399d94
+test 0104010101010101 0000000000000000 50f636324a9b7f80
+test 0102010101010101 0000000000000000 a8468ee3bc18f06d
+test 0101800101010101 0000000000000000 a2dc9e92fd3cde92
+test 0101400101010101 0000000000000000 cac09f797d031287
+test 0101200101010101 0000000000000000 90ba680b22aeb525
+test 0101100101010101 0000000000000000 ce7a24f350e280b6
+test 0101080101010101 0000000000000000 882bff0aa01a0b87
+test 0101040101010101 0000000000000000 25610288924511c2
+test 0101020101010101 0000000000000000 c71516c29c75d170
+test 0101018001010101 0000000000000000 5199c29a52c9f059
+test 0101014001010101 0000000000000000 c22f0a294a71f29f
+test 0101012001010101 0000000000000000 ee371483714c02ea
+test 0101011001010101 0000000000000000 a81fbd448f9e522f
+test 0101010801010101 0000000000000000 4f644c92e192dfed
+test 0101010401010101 0000000000000000 1afa9a66a6df92ae
+test 0101010201010101 0000000000000000 b3c1cc715cb879d8
+test 0101010180010101 0000000000000000 19d032e64ab0bd8b
+test 0101010140010101 0000000000000000 3cfaa7a7dc8720dc
+test 0101010120010101 0000000000000000 b7265f7f447ac6f3
+test 0101010110010101 0000000000000000 9db73b3c0d163f54
+test 0101010108010101 0000000000000000 8181b65babf4a975
+test 0101010104010101 0000000000000000 93c9b64042eaa240
+test 0101010102010101 0000000000000000 5570530829705592
+test 0101010101800101 0000000000000000 8638809e878787a0
+test 0101010101400101 0000000000000000 41b9a79af79ac208
+test 0101010101200101 0000000000000000 7a9be42f2009a892
+test 0101010101100101 0000000000000000 29038d56ba6d2745
+test 0101010101080101 0000000000000000 5495c6abf1e5df51
+test 0101010101040101 0000000000000000 ae13dbd561488933
+test 0101010101020101 0000000000000000 024d1ffa8904e389
+test 0101010101018001 0000000000000000 d1399712f99bf02e
+test 0101010101014001 0000000000000000 14c1d7c1cffec79e
+test 0101010101012001 0000000000000000 1de5279dae3bed6f
+test 0101010101011001 0000000000000000 e941a33f85501303
+test 0101010101010801 0000000000000000 da99dbbc9a03f379
+test 0101010101010401 0000000000000000 b7fc92f91d8e92e9
+test 0101010101010201 0000000000000000 ae8e5caa3ca04e85
+test 0101010101010180 0000000000000000 9cc62df43b6eed74
+test 0101010101010140 0000000000000000 d863dbb5c59a91a0
+test 0101010101010120 0000000000000000 a1ab2190545b91d7
+test 0101010101010110 0000000000000000 0875041e64c570f7
+test 0101010101010108 0000000000000000 5a594528bebef1cc
+test 0101010101010104 0000000000000000 fcdb3291de21f0c0
+test 0101010101010102 0000000000000000 869efd7f9f265a09
+test 1046913489980131 0000000000000000 88d55e54f54c97b4
+test 1007103489988020 0000000000000000 0c0cc00c83ea48fd
+test 10071034c8980120 0000000000000000 83bc8ef3a6570183
+test 1046103489988020 0000000000000000 df725dcad94ea2e9
+test 1086911519190101 0000000000000000 e652b53b550be8b0
+test 1086911519580101 0000000000000000 af527120c485cbb0
+test 5107b01519580101 0000000000000000 0f04ce393db926d5
+test 1007b01519190101 0000000000000000 c9f00ffc74079067
+test 3107915498080101 0000000000000000 7cfd82a593252b4e
+test 3107919498080101 0000000000000000 cb49a2f9e91363e3
+test 10079115b9080140 0000000000000000 00b588be70d23f56
+test 3107911598090140 0000000000000000 406a9a6ab43399ae
+test 1007d01589980101 0000000000000000 6cb773611dca9ada
+test 9107911589980101 0000000000000000 67fd21c17dbb5d70
+test 9107d01589190101 0000000000000000 9592cb4110430787
+test 1007d01598980120 0000000000000000 a6b7ff68a318ddd3
+test 1007940498190101 0000000000000000 4d102196c914ca16
+test 0107910491190401 0000000000000000 2dfa9f4573594965
+test 0107910491190101 0000000000000000 b46604816c0e0774
+test 0107940491190401 0000000000000000 6e7e6221a4f34e87
+test 19079210981a0101 0000000000000000 aa85e74643233199
+test 1007911998190801 0000000000000000 2e5a19db4d1962d6
+test 10079119981a0801 0000000000000000 23a866a809d30894
+test 1007921098190101 0000000000000000 d812d961f017d320
+test 100791159819010b 0000000000000000 055605816e58608f
+test 1004801598190101 0000000000000000 abd88e8b1b7716f1
+test 1004801598190102 0000000000000000 537ac95be69da1e1
+test 1004801598190108 0000000000000000 aed0f6ae3c25cdd8
+test 1002911598100104 0000000000000000 b3e35a5ee53e7b8d
+test 1002911598190104 0000000000000000 61c79c71921a2ef8
+test 1002911598100201 0000000000000000 e2f5728f0995013c
+test 1002911698100101 0000000000000000 1aeac39a61f0a464
+test 7ca110454a1a6e57 01a1d6d039776742 690f5b0d9a26939b
+test 0131d9619dc1376e 5cd54ca83def57da 7a389d10354bd271
+test 07a1133e4a0b2686 0248d43806f67172 868ebb51cab4599a
+test 3849674c2602319e 51454b582ddf440a 7178876e01f19b2a
+test 04b915ba43feb5b6 42fd443059577fa2 af37fb421f8c4095
+test 0113b970fd34f2ce 059b5e0851cf143a 86a560f10ec6d85b
+test 0170f175468fb5e6 0756d8e0774761d2 0cd3da020021dc09
+test 43297fad38e373fe 762514b829bf486a ea676b2cb7db2b7a
+test 07a7137045da2a16 3bdd119049372802 dfd64a815caf1a0f
+test 04689104c2fd3b2f 26955f6835af609a 5c513c9c4886c088
+test 37d06bb516cb7546 164d5e404f275232 0a2aeeae3ff4ab77
+test 1f08260d1ac2465e 6b056e18759f5cca ef1bf03e5dfa575a
+test 584023641aba6176 004bd6ef09176062 88bf0db6d70dee56
+test 025816164629b007 480d39006ee762f2 a1f9915541020b56
+test 49793ebc79b3258f 437540c8698f3cfa 6fbf1cafcffd0556
+test 4fb05e1515ab73a7 072d43a077075292 2f22e49bab7ca1ac
+test 49e95d6d4ca229bf 02fe55778117f12a 5a6b612cc26cce4a
+test 018310dc409b26d6 1d9d5c5018f728c2 5f4c038ed12b2e41
+test 1c587f1c13924fef 305532286d6f295a 63fac0d034d9f793
+
+
+note CBC mode, zeroes padding
+fields key_hex plaintext_hex iv_hex block_mode padding ciphertext_hex
+test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef cbc zeroes e5c7cdde872bf27c43e934008c389c0f683788499a7c05f6
+
+note CBC mode, PKCS padding
+fields key_hex plaintext_hex iv_hex block_mode padding ciphertext_hex
+test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef cbc pkcs e5c7cdde872bf27c43e934008c389c0f683788499a7c05f662c16a27e4fcf277
+
+note CBC CTR mode
+fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
+test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef cbc_cts e5c7cdde872bf27c683788499a7c05f643e934008c389c0f
+
+note CFB mode
+fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
+test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef cfb f3096249c7f46e51a69e839b1a92f78403467133898ea622
+
+note OFB mode
+fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
+test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef ofb f3096249c7f46e5135f24a242eeb3d3f3d6d5be3255af8c3
+
+note COUNTER mode
+fields key_hex plaintext_hex iv_hex block_mode ciphertext_hex
+test 0123456789abcdef 4e6f77206973207468652074696d6520666f7220616c6c20 1234567890abcdef counter f3096249c7f46e51163a8ca0ffc94c27fa2f80f480b86f75
View
18 test/data/ciphers/diamond.dat
@@ -1,9 +1,9 @@
-algorithm cipher DIAMOND2
-fields key_hex plaintext_hex ciphertext_hex rounds
-test e834fdb933c502923d92bc9e14368e70d41c66cbdf36155033a66e07e6cc6d8d 5a8d872d31eedde63fc46f6c36456d8e 39b60490aeef791a29015d74494aaa89 15
-test 599b02fbd0d321a789eb97b388bf77c663 56a25a87d40ab25a1dd972a7d154f8a5 081420f230d5a85ab2b55453c43c7967 14
-test 3361066b2c297543 787699fcb627774fcf0f0d82462d6e7d ceb8b4f88c02df34addaf431e7a7a07c 9
-algorithm diamond2_lite
-test e834fdb933c502923d92bc9e14368e70d41c66cbdf36155033a66e07e6cc6d8d 5a8d872d31eedde6 2e69544d7723cba0 30
-test 599b02fbd0d321a789eb97b388bf77c663 56a25a87d40ab25a 3177400de74099bb 11
-test 3361066b2c297543 787699fcb627774f 06ad8cdf623d31f7 10
+algorithm cipher diamond2
+fields key_hex plaintext_hex ciphertext_hex rounds
+test e834fdb933c502923d92bc9e14368e70d41c66cbdf36155033a66e07e6cc6d8d 5a8d872d31eedde63fc46f6c36456d8e 39b60490aeef791a29015d74494aaa89 15
+test 599b02fbd0d321a789eb97b388bf77c663 56a25a87d40ab25a1dd972a7d154f8a5 081420f230d5a85ab2b55453c43c7967 14
+test 3361066b2c297543 787699fcb627774fcf0f0d82462d6e7d ceb8b4f88c02df34addaf431e7a7a07c 9
+algorithm cipher diamond2_lite
+test e834fdb933c502923d92bc9e14368e70d41c66cbdf36155033a66e07e6cc6d8d 5a8d872d31eedde6 2e69544d7723cba0 30
+test 599b02fbd0d321a789eb97b388bf77c663 56a25a87d40ab25a 3177400de74099bb 11
+test 3361066b2c297543 787699fcb627774f 06ad8cdf623d31f7 10
View
20 test/data/ciphers/gostval.dat
@@ -1,10 +1,10 @@
-algorithm cipher GOST
-fields key_hex plaintext_hex ciphertext_hex
-test be5ec2006cff9dcf52354959f1ff0cbfe95061b5a648c10387069c25997c0672 0df82802b741a292 07f9027df7f7df89
-test b385272ac8d72a5a8b344bc80363ac4d09bf58f41f540624cbcb8fdcf55307d7 1354ee9c0a11cd4c 4fb50536f960a7b1
-test aee02f609a35660e4097e546fd3026b032cd107c7d459977adf489bef2652262 6693d492c4b0cc39 670034ac0fa811b5
-test 320e9d8422165d58911dfc7d8bbb1f81b0ecd924023bf94d9df7dcf7801240e0 99e2d13080928d79 8118ff9d3b3cfe7d
-test c9f703bbbfc63691bfa3b7b87ea8fd5e8e8ef384ef733f1a61aef68c8ffa265f d1e787749c72814c a083826a790d3e0c
-test 728fee32f04b4c654ad7f607d71c660c2c2670d7c999713233149a1c0c17a1f0 d4c05323a4f7a7b5 4d1f2e6b0d9de2ce
-test 35fc96402209500fcfdef5352d1abb038fe33fc0d9d58512e56370b22baa133b 8742d9a05f6a3af6 2f3bb84879d11e52
-test d416f630be65b7fe150656183370e07018234ee5da3d89c4ce9152a03e5bfb77 f86506da04e41cb8 96f0a5c77a04f5ce
+algorithm cipher gost
+fields key_hex plaintext_hex ciphertext_hex
+test be5ec2006cff9dcf52354959f1ff0cbfe95061b5a648c10387069c25997c0672 0df82802b741a292 07f9027df7f7df89
+test b385272ac8d72a5a8b344bc80363ac4d09bf58f41f540624cbcb8fdcf55307d7 1354ee9c0a11cd4c 4fb50536f960a7b1
+test aee02f609a35660e4097e546fd3026b032cd107c7d459977adf489bef2652262 6693d492c4b0cc39 670034ac0fa811b5
+test 320e9d8422165d58911dfc7d8bbb1f81b0ecd924023bf94d9df7dcf7801240e0 99e2d13080928d79 8118ff9d3b3cfe7d
+test c9f703bbbfc63691bfa3b7b87ea8fd5e8e8ef384ef733f1a61aef68c8ffa265f d1e787749c72814c a083826a790d3e0c
+test 728fee32f04b4c654ad7f607d71c660c2c2670d7c999713233149a1c0c17a1f0 d4c05323a4f7a7b5 4d1f2e6b0d9de2ce
+test 35fc96402209500fcfdef5352d1abb038fe33fc0d9d58512e56370b22baa133b 8742d9a05f6a3af6 2f3bb84879d11e52
+test d416f630be65b7fe150656183370e07018234ee5da3d89c4ce9152a03e5bfb77 f86506da04e41cb8 96f0a5c77a04f5ce
View
26 test/data/ciphers/ideaval.dat
@@ -1,13 +1,13 @@
-algorithm cipher IDEA
-fields key_hex plaintext_hex ciphertext_hex
-test 00010002000300040005000600070008 0000000100020003 11fbed2b01986de5
-test 00010002000300040005000600070008 0102030405060708 540e5fea18c2f8b1
-test 00010002000300040005000600070008 0019324b647d96af 9f0a0ab6e10ced78
-test 00010002000300040005000600070008 f5202d5b9c671b08 cf18fd7355e2c5c5
-test 00010002000300040005000600070008 fae6d2beaa96826e 85df52005608193d
-test 00010002000300040005000600070008 0a141e28323c4650 2f7de750212fb734
-test 00010002000300040005000600070008 050a0f14191e2328 7b7314925de59c09
-test 0005000a000f00140019001e00230028 0102030405060708 3ec04780beff6e20
-test 3a984e2000195db32ee501c8c47cea60 0102030405060708 97bcd8200780da86
-test 006400c8012c019001f4025802bc0320 05320a6414c819fa 65be87e7a2538aed
-test 9d4075c103bc322afb03e7be6ab30006 0808080808080808 f5db1ac45e5ef9f9
+algorithm cipher idea
+fields key_hex plaintext_hex ciphertext_hex
+test 00010002000300040005000600070008 0000000100020003 11fbed2b01986de5
+test 00010002000300040005000600070008 0102030405060708 540e5fea18c2f8b1
+test 00010002000300040005000600070008 0019324b647d96af 9f0a0ab6e10ced78
+test 00010002000300040005000600070008 f5202d5b9c671b08 cf18fd7355e2c5c5
+test 00010002000300040005000600070008 fae6d2beaa96826e 85df52005608193d
+test 00010002000300040005000600070008 0a141e28323c4650 2f7de750212fb734
+test 00010002000300040005000600070008 050a0f14191e2328 7b7314925de59c09
+test 0005000a000f00140019001e00230028 0102030405060708 3ec04780beff6e20
+test 3a984e2000195db32ee501c8c47cea60 0102030405060708 97bcd8200780da86
+test 006400c8012c019001f4025802bc0320 05320a6414c819fa 65be87e7a2538aed
+test 9d4075c103bc322afb03e7be6ab30006 0808080808080808 f5db1ac45e5ef9f9
View
22 test/data/ciphers/marsval.dat
@@ -1,11 +1,11 @@
-algorithm cipher MARS
-fields key_hex plaintext_hex ciphertext_hex
-test 00000000000000000000000000000000 00000000000000000000000000000000 dcc07b8dfb0738d6e30a22dfcf27e886
-test 00000000000000000000000000000000 dcc07b8dfb0738d6e30a22dfcf27e886 33caffbddc7f1dda0f9c15fa2f30e2ff
-test cb14a1776abbc1cdafe7243def2cea02 f94512a9b42d034ec4792204d708a69b 225da2cb64b73f79069f21a5e3cb8522
-test 86edf4da31824cabef6a4637c40b0bab 4df955ad5b398d66408d620a2b27e1a9 a4b737340ae6d2cafd930ba97d86129f
-test 000000000000000000000000000000000000000000000000 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 97778747d60e425c2b4202599db856fb
-test d158860838874d9500000000000000000000000000000000 93a953a82c10411dd158860838874d95 4fa0e5f64893131712f01408d233e9f7
-test 791739a58b04581a93a953a82c10411dd158860838874d95 6761c42d3e6142d2a84fbfadb383158f f706bc0fd97e28b6f1af4e17d8755fff
-test 0000000000000000000000000000000000000000000000000000000000000000 62e45b4cf3477f1dd65063729d9aba8f 0f4b897ea014d21fbc20f1054a42f719
-test fba167983e7aef22317ce28c02aae1a3e8e5cc3cedbea82a99dbc39ad65e7227 1344aba4d3c44708a8a72116d4f49384 458335d95ea42a9f4dccd41aecc2390d
+algorithm cipher mars
+fields key_hex plaintext_hex ciphertext_hex
+test 00000000000000000000000000000000 00000000000000000000000000000000 dcc07b8dfb0738d6e30a22dfcf27e886
+test 00000000000000000000000000000000 dcc07b8dfb0738d6e30a22dfcf27e886 33caffbddc7f1dda0f9c15fa2f30e2ff
+test cb14a1776abbc1cdafe7243def2cea02 f94512a9b42d034ec4792204d708a69b 225da2cb64b73f79069f21a5e3cb8522
+test 86edf4da31824cabef6a4637c40b0bab 4df955ad5b398d66408d620a2b27e1a9 a4b737340ae6d2cafd930ba97d86129f
+test 000000000000000000000000000000000000000000000000 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 97778747d60e425c2b4202599db856fb
+test d158860838874d9500000000000000000000000000000000 93a953a82c10411dd158860838874d95 4fa0e5f64893131712f01408d233e9f7
+test 791739a58b04581a93a953a82c10411dd158860838874d95 6761c42d3e6142d2a84fbfadb383158f f706bc0fd97e28b6f1af4e17d8755fff
+test 0000000000000000000000000000000000000000000000000000000000000000 62e45b4cf3477f1dd65063729d9aba8f 0f4b897ea014d21fbc20f1054a42f719
+test fba167983e7aef22317ce28c02aae1a3e8e5cc3cedbea82a99dbc39ad65e7227 1344aba4d3c44708a8a72116d4f49384 458335d95ea42a9f4dccd41aecc2390d
View
4 test/data/ciphers/panamac.dat
@@ -1,7 +1,7 @@
-algorithm cipher PANAMA_LITTLE_ENDIAN
+algorithm cipher panama_le
fields key_hex plaintext_hex iv_hex ciphertext_hex
test 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f f07f5ff2ccd01a0a7d44acd6d239c2af0da1ff35275baf5dfa6e09411b79d8b9
-algorithm cipher PANAMA_BIG_ENDIAN
+algorithm cipher panama_be
fields key_hex plaintext_hex iv_hex ciphertext_hex
test 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f e12e2f6ba41ae832d888da9fa6863bc37c0e996f190a1711330322d37bd98ca4
View
20 test/data/ciphers/rc2val.dat
@@ -1,10 +1,10 @@
-algorithm cipher RC2
-fields key_length effective_key_length key_hex plaintext_hex ciphertext_hex
-test 8 63 0000000000000000 0000000000000000 ebb773f993278eff
-test 8 64 ffffffffffffffff ffffffffffffffff 278b27e42e2f0d49
-test 8 64 3000000000000000 1000000000000001 30649edf9be7d2c2
-test 1 64 88 0000000000000000 61a8a244adacccf0
-test 7 64 88bca90e90875a 0000000000000000 6ccf4308974c267f
-test 16 64 88bca90e90875a7f0f79c384627bafb2 0000000000000000 1a807d272bbe5db1
-test 16 128 88bca90e90875a7f0f79c384627bafb2 0000000000000000 2269552ab0f85ca6
-test 33 129 88bca90e90875a7f0f79c384627bafb216f80a6f85920584c42fceb0be255daf1e 0000000000000000 5b78d3a43dfff1f1
+algorithm cipher rc2
+fields key_length effective_key_length key_hex plaintext_hex ciphertext_hex
+test 8 63 0000000000000000 0000000000000000 ebb773f993278eff
+test 8 64 ffffffffffffffff ffffffffffffffff 278b27e42e2f0d49
+test 8 64 3000000000000000 1000000000000001 30649edf9be7d2c2
+test 1 64 88 0000000000000000 61a8a244adacccf0
+test 7 64 88bca90e90875a 0000000000000000 6ccf4308974c267f
+test 16 64 88bca90e90875a7f0f79c384627bafb2 0000000000000000 1a807d272bbe5db1
+test 16 128 88bca90e90875a7f0f79c384627bafb2 0000000000000000 2269552ab0f85ca6
+test 33 129 88bca90e90875a7f0f79c384627bafb216f80a6f85920584c42fceb0be255daf1e 0000000000000000 5b78d3a43dfff1f1
View
14 test/data/ciphers/rc5val.dat
@@ -1,7 +1,7 @@
-algorithm cipher RC5
-fields key_hex plaintext_hex ciphertext_hex rounds
-test 00000000000000000000000000000000 0000000000000000 21a5dbee154b8f6d 12
-test 915f4619be41b2516355a50110a9ce91 21a5dbee154b8f6d f7c013ac5b2b8952 12
-test 783348e75aeb0f2fd7b169bb8dc16787 f7c013ac5b2b8952 2f42b3b70369fc92 12
-test dc49db1375a5584f6485b413b5f12baf 2f42b3b70369fc92 65c178b284d197cc 12
-test 5269f149d41ba0152497574d7f153125 65c178b284d197cc eb44e415da319824 12
+algorithm cipher rc5
+fields key_hex plaintext_hex ciphertext_hex rounds
+test 00000000000000000000000000000000 0000000000000000 21a5dbee154b8f6d 12
+test 915f4619be41b2516355a50110a9ce91 21a5dbee154b8f6d f7c013ac5b2b8952 12
+test 783348e75aeb0f2fd7b169bb8dc16787 f7c013ac5b2b8952 2f42b3b70369fc92 12
+test dc49db1375a5584f6485b413b5f12baf 2f42b3b70369fc92 65c178b284d197cc 12
+test 5269f149d41ba0152497574d7f153125 65c178b284d197cc eb44e415da319824 12
View
16 test/data/ciphers/rc6val.dat
@@ -1,8 +1,8 @@
-algorithm cipher RC6
-fields key_hex plaintext_hex ciphertext_hex
-test 00000000000000000000000000000000 00000000000000000000000000000000 8fc3a53656b1f778c129df4e9848a41e
-test 0123456789abcdef0112233445566778 02132435465768798a9bacbdcedfe0f1 524e192f4715c6231f51f6367ea43f18
-test 000000000000000000000000000000000000000000000000 00000000000000000000000000000000 6cd61bcb190b30384e8a3f168690ae82
-test 0123456789abcdef0112233445566778899aabbccddeeff0 02132435465768798a9bacbdcedfe0f1 688329d019e505041e52e92af95291d4
-test 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 8f5fbd0510d15fa893fa3fda6e857ec2
-test 0123456789abcdef0112233445566778899aabbccddeeff01032547698badcfe 02132435465768798a9bacbdcedfe0f1 c8241816f0d7e48920ad16a1674e5d48
+algorithm cipher rc6
+fields key_hex plaintext_hex ciphertext_hex
+test 00000000000000000000000000000000 00000000000000000000000000000000 8fc3a53656b1f778c129df4e9848a41e
+test 0123456789abcdef0112233445566778 02132435465768798a9bacbdcedfe0f1 524e192f4715c6231f51f6367ea43f18
+test 000000000000000000000000000000000000000000000000 00000000000000000000000000000000 6cd61bcb190b30384e8a3f168690ae82
+test 0123456789abcdef0112233445566778899aabbccddeeff0 02132435465768798a9bacbdcedfe0f1 688329d019e505041e52e92af95291d4
+test 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 8f5fbd0510d15fa893fa3fda6e857ec2
+test 0123456789abcdef0112233445566778899aabbccddeeff01032547698badcfe 02132435465768798a9bacbdcedfe0f1 c8241816f0d7e48920ad16a1674e5d48
View
22 test/data/ciphers/rijndael.dat
@@ -1,11 +1,11 @@
-algorithm cipher AES
-fields key_hex plaintext_hex ciphertext_hex
-test 000102030405060708090a0b0c0d0e0f 000102030405060708090a0b0c0d0e0f 0a940bb5416ef045f1c39458c653ea5a
-test 00010203050607080a0b0c0d0f101112 506812a45f08c889b97f5980038b8359 d8f532538289ef7d06b506a4fd5be9c9
-test 14151617191a1b1c1e1f202123242526 5c6d71ca30de8b8b00549984d2ec7d4b 59ab30f4d4ee6e4ff9907ef65b1fb68c
-test 28292a2b2d2e2f30323334353738393a 53f3f4c64f8616e4e7c56199f48f21f6 bf1ed2fcb2af3fd41443b56d85025cb1
-test 00010203050607080a0b0c0d0f10111214151617191a1b1c 2d33eef2c0430a8a9ebf45e809c40bb6 dff4945e0336df4c1c56bc700eff837f
-test 1e1f20212324252628292a2b2d2e2f30323334353738393a 6aa375d1fa155a61fb72353e0a5a8756 b6fddef4752765e347d5d2dc196d1252
-test 3c3d3e3f41424344464748494b4c4d4e5051525355565758 bc3736518b9490dcb8ed60eb26758ed4 d23684e3d963b3afcf1a114aca90cbd6
-test 00010203050607080a0b0c0d0f10111214151617191a1b1c1e1f202123242526 834eadfccac7e1b30664b1aba44815ab 1946dabf6a03a2a2c3d0b05080aed6fc
-test 28292a2b2d2e2f30323334353738393a3c3d3e3f41424344464748494b4c4d4e d9dc4dba3021b05d67c0518f72b62bf1 5ed301d747d3cc715445ebdec62f2fb4
+algorithm cipher aes
+fields key_hex plaintext_hex ciphertext_hex
+test 000102030405060708090a0b0c0d0e0f 000102030405060708090a0b0c0d0e0f 0a940bb5416ef045f1c39458c653ea5a
+test 00010203050607080a0b0c0d0f101112 506812a45f08c889b97f5980038b8359 d8f532538289ef7d06b506a4fd5be9c9
+test 14151617191a1b1c1e1f202123242526 5c6d71ca30de8b8b00549984d2ec7d4b 59ab30f4d4ee6e4ff9907ef65b1fb68c
+test 28292a2b2d2e2f30323334353738393a 53f3f4c64f8616e4e7c56199f48f21f6 bf1ed2fcb2af3fd41443b56d85025cb1
+test 00010203050607080a0b0c0d0f10111214151617191a1b1c 2d33eef2c0430a8a9ebf45e809c40bb6 dff4945e0336df4c1c56bc700eff837f
+test 1e1f20212324252628292a2b2d2e2f30323334353738393a 6aa375d1fa155a61fb72353e0a5a8756 b6fddef4752765e347d5d2dc196d1252
+test 3c3d3e3f41424344464748494b4c4d4e5051525355565758 bc3736518b9490dcb8ed60eb26758ed4 d23684e3d963b3afcf1a114aca90cbd6
+test 00010203050607080a0b0c0d0f10111214151617191a1b1c1e1f202123242526 834eadfccac7e1b30664b1aba44815ab 1946dabf6a03a2a2c3d0b05080aed6fc
+test 28292a2b2d2e2f30323334353738393a3c3d3e3f41424344464748494b4c4d4e d9dc4dba3021b05d67c0518f72b62bf1 5ed301d747d3cc715445ebdec62f2fb4
View
54 test/data/ciphers/saferval.dat
@@ -1,27 +1,27 @@
-algorithm cipher SAFER_K
-fields key_hex plaintext_hex ciphertext_hex
-test 0000000000000000 0000000000000000 032808c90ee7ab7f
-test 0000000000000000 0102030405060708 7d28038633b92eb4
-test 0102030405060708 1011121314151617 71e5cf7f083a59c5
-test 0102030405060708 18191a1b1c1d1e1f 356f702cc7fa8161
-
-algorithm cipher SAFER_K
-fields key_hex plaintext_hex ciphertext_hex rounds
-test 08070605040302010807060504030201 5051525354555657 38e64dbf6e0f896e 12
-test 08070605040302010807060504030201 58595a5b5c5d5e5f 7d8f014a902480fe 12
-test 01020304050607080807060504030201 6061626364656667 113511c22e7936df 12
-test 01020304050607080807060504030201 68696a6b6c6d6e6f 9eeb2d17c0581437 12
-
-algorithm cipher SAFER_SK
-fields key_hex plaintext_hex ciphertext_hex rounds
-test 0000000000000001 7071727374757677 9abe2c85be2d7614 6
-test 0000000000000001 78797a7b7c7d7e7f ebc4a9c6c25cf215 6
-test 0102030405060708 8081828384858687 54e72ba2d744c566 6
-test 0102030405060708 88898a8b8c8d8e8f 57f55d0f7eb6f8fe 6
-
-algorithm cipher SAFER_SK
-fields key_hex plaintext_hex ciphertext_hex rounds
-test 00000000000000010000000000000001 9091929394959697 9eaa4df1e0eff445 10
-test 00000000000000010000000000000001 98999a9b9c9d9e9f 4cc14838399e532d 10
-test 01020304050607080000000000000000 a0a1a2a3a4a5a6a7 41246b65f1dc6afa 10
-test 00000000000000000102030405060708 a0a1a2a3a4a5a6a7 5cbd77b03626fe3b 10
+algorithm cipher safer_k
+fields key_hex plaintext_hex ciphertext_hex
+test 0000000000000000 0000000000000000 032808c90ee7ab7f
+test 0000000000000000 0102030405060708 7d28038633b92eb4
+test 0102030405060708 1011121314151617 71e5cf7f083a59c5
+test 0102030405060708 18191a1b1c1d1e1f 356f702cc7fa8161
+
+algorithm cipher safer_k
+fields key_hex plaintext_hex ciphertext_hex rounds
+test 08070605040302010807060504030201 5051525354555657 38e64dbf6e0f896e 12
+test 08070605040302010807060504030201 58595a5b5c5d5e5f 7d8f014a902480fe 12
+test 01020304050607080807060504030201 6061626364656667 113511c22e7936df 12
+test 01020304050607080807060504030201 68696a6b6c6d6e6f 9eeb2d17c0581437 12
+
+algorithm cipher safer_sk
+fields key_hex plaintext_hex ciphertext_hex rounds
+test 0000000000000001 7071727374757677 9abe2c85be2d7614 6
+test 0000000000000001 78797a7b7c7d7e7f ebc4a9c6c25cf215 6
+test 0102030405060708 8081828384858687 54e72ba2d744c566 6
+test 0102030405060708 88898a8b8c8d8e8f 57f55d0f7eb6f8fe 6
+
+algorithm cipher safer_sk
+fields key_hex plaintext_hex ciphertext_hex rounds
+test 00000000000000010000000000000001 9091929394959697 9eaa4df1e0eff445 10
+test 00000000000000010000000000000001 98999a9b9c9d9e9f 4cc14838399e532d 10
+test 01020304050607080000000000000000 a0a1a2a3a4a5a6a7 41246b65f1dc6afa 10
+test 00000000000000000102030405060708 a0a1a2a3a4a5a6a7 5cbd77b03626fe3b 10
View
2 test/data/ciphers/seal.dat
@@ -1,3 +1,3 @@
-algorithm cipher SEAL
+algorithm cipher seal
fields key_hex plaintext_hex iv_hex ciphertext_hex
test 67452301efcdab8998badcfe10325476c3d2e1f0 37a005959b84c49ca4be1e050673530f5fb097fdf6a13fbd6c2cdecd81fdee7c 013577af 0000000000000000000000000000000000000000000000000000000000000000
View
22 test/data/ciphers/serpentv.dat
@@ -1,11 +1,11 @@
-algorithm cipher SERPENT
-fields key_hex plaintext_hex ciphertext_hex
-test 00000000000000000000000000000000 d29d576fcea3a3a7ed9099f29273d78e b2288b968ae8b08648d1ce9606fd992d
-test 00000000000000000000000000000000 d29d576fcea3a3a7ed9099f26d8c2871 563a8403ff5309d62370b1dcf5a11edd
-test ffeeddccbbaa99887766554433221100 1032547698badcfeefcdab8967452301 d5baa00a4bb9d8a7c981c8dc90d89d92
-test ffeeddccbbaa99887766554433221100 145f0b8b663176b95dcab7e9dcd5cc24 1032547698badcfeefcdab8967452301
-test 000000000000000000000000000000000000000000000000 d29d576fceaba3a7ed9899f2927bd78e 130e353e1037c22405e8faefb2c3c3e9
-test 8899aabbccddeeffffeeddccbbaa99887766554433221100 1032547698badcfeefcdab8967452301 da860842b720802bf404a4c71034879a
-test 8899aabbccddeeffffeeddccbbaa99887766554433221100 b2696bd0d98c17953e4239225d27202c 1032547698badcfeefcdab8967452301
-test 0000000000000000000000000000000000000000000000000000000000000000 92074732d84e1841a013a0034c52bf50 81c4eb7b8ad9a8d0f2aa5d7bd626b560
-test 00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100 1032547698badcfeefcdab8967452301 93df9a3cafe387bd999eebe393a17fca
+algorithm cipher serpent
+fields key_hex plaintext_hex ciphertext_hex
+test 00000000000000000000000000000000 d29d576fcea3a3a7ed9099f29273d78e b2288b968ae8b08648d1ce9606fd992d
+test 00000000000000000000000000000000 d29d576fcea3a3a7ed9099f26d8c2871 563a8403ff5309d62370b1dcf5a11edd
+test ffeeddccbbaa99887766554433221100 1032547698badcfeefcdab8967452301 d5baa00a4bb9d8a7c981c8dc90d89d92
+test ffeeddccbbaa99887766554433221100 145f0b8b663176b95dcab7e9dcd5cc24 1032547698badcfeefcdab8967452301
+test 000000000000000000000000000000000000000000000000 d29d576fceaba3a7ed9899f2927bd78e 130e353e1037c22405e8faefb2c3c3e9
+test 8899aabbccddeeffffeeddccbbaa99887766554433221100 1032547698badcfeefcdab8967452301 da860842b720802bf404a4c71034879a
+test 8899aabbccddeeffffeeddccbbaa99887766554433221100 b2696bd0d98c17953e4239225d27202c 1032547698badcfeefcdab8967452301
+test 0000000000000000000000000000000000000000000000000000000000000000 92074732d84e1841a013a0034c52bf50 81c4eb7b8ad9a8d0f2aa5d7bd626b560
+test 00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100 1032547698badcfeefcdab8967452301 93df9a3cafe387bd999eebe393a17fca
View
2 test/data/ciphers/shacal2.dat
@@ -1,4 +1,4 @@
-algorithm cipher SHACAL2
+algorithm cipher shacal2
fields key_hex plaintext_hex ciphertext_hex
test 80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 361ab6322fa9e7a7bb23818d839e01bddafdf47305426edd297aedb9f6202bae
test 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 8000000000000000000000000000000000000000000000000000000000000000 2cae7c0460ee2fc3200923a1b6c2abeea746c8b44f6c3fb941bd3af02a3e6e3e
View
18 test/data/ciphers/sharkval.dat
@@ -1,9 +1,9 @@
-algorithm cipher SHARK
-fields key_hex plaintext_hex ciphertext_hex
-test 00000000000000000000000000000000 0000000000000000 214bcf4e7716420a
-test 000102030405060708090a0b0c0d0e0f 0000000000000000 c76c696289898137
-test 000102030405060708090a0b0c0d0e0f c76c696289898137 077a4a59faeeea4d
-test 915f4619be41b2516355a50110a9ce91 21a5dbee154b8f6d 6ff33b98f448e95a
-test 783348e75aeb0f2fd7b169bb8dc16787 f7c013ac5b2b8952 e5e554abe9ced2d2
-test dc49db1375a5584f6485b413b5f12baf 2f42b3b70369fc92 9ae068313f343a7a
-test 5269f149d41ba0152497574d7f153125 65c178b284d197cc d3f111a282f17f29
+algorithm cipher shark
+fields key_hex plaintext_hex ciphertext_hex
+test 00000000000000000000000000000000 0000000000000000 214bcf4e7716420a
+test 000102030405060708090a0b0c0d0e0f 0000000000000000 c76c696289898137
+test 000102030405060708090a0b0c0d0e0f c76c696289898137 077a4a59faeeea4d
+test 915f4619be41b2516355a50110a9ce91 21a5dbee154b8f6d 6ff33b98f448e95a
+test 783348e75aeb0f2fd7b169bb8dc16787 f7c013ac5b2b8952 e5e554abe9ced2d2
+test dc49db1375a5584f6485b413b5f12baf 2f42b3b70369fc92 9ae068313f343a7a
+test 5269f149d41ba0152497574d7f153125 65c178b284d197cc d3f111a282f17f29
View
2 test/data/ciphers/skipjack.dat
@@ -1,3 +1,3 @@
-algorithm cipher SKIPJACK
+algorithm cipher skipjack
fields key_hex plaintext_hex ciphertext_hex
test 11223344556677889900 aabbccdd00112233 00d3127ae2ca8725
View
20 test/data/ciphers/squareva.dat
@@ -1,10 +1,10 @@
-algorithm cipher SQUARE
-fields key_hex plaintext_hex ciphertext_hex
-test 00000000000000000000000000000000 00000000000000000000000000000000 3c00428f8abbc0b84f057cc19c26f8cf
-test 000102030405060708090a0b0c0d0e0f 00000000000000000000000000000000 ff596fa668bfc3014200ae01e2bba0a0
-test 000102030405060708090a0b0c0d0e0f 000102030405060708090a0b0c0d0e0f 7c3491d94994e70f0ec2e7a5ccb5a14f
-test 000102030405060708090a0b0c0d0e0f c76c696289898137077a4a59faeeea4d 88c6ff4b92604c6e66656b02ddaf9f40
-test 915f4619be41b2516355a50110a9ce91 21a5dbee154b8f6d6ff33b98f448e95a 3388801f66e7fcc0bce522a23a4f0c7f
-test 783348e75aeb0f2fd7b169bb8dc16787 f7c013ac5b2b8952e5e554abe9ced2d2 a1c0e9215141343dec2b556942c92bde
-test dc49db1375a5584f6485b413b5f12baf 2f42b3b70369fc929ae068313f343a7a 3fbe6811b998cdf3e50abde2f3c075e3
-test 5269f149d41ba0152497574d7f153125 65c178b284d197ccd3f111a282f17f29 d7b7209e0879744c782809b6d2e0b1b0
+algorithm cipher square
+fields key_hex plaintext_hex ciphertext_hex
+test 00000000000000000000000000000000 00000000000000000000000000000000 3c00428f8abbc0b84f057cc19c26f8cf
+test 000102030405060708090a0b0c0d0e0f 00000000000000000000000000000000 ff596fa668bfc3014200ae01e2bba0a0
+test 000102030405060708090a0b0c0d0e0f 000102030405060708090a0b0c0d0e0f 7c3491d94994e70f0ec2e7a5ccb5a14f
+test 000102030405060708090a0b0c0d0e0f c76c696289898137077a4a59faeeea4d 88c6ff4b92604c6e66656b02ddaf9f40
+test 915f4619be41b2516355a50110a9ce91 21a5dbee154b8f6d6ff33b98f448e95a 3388801f66e7fcc0bce522a23a4f0c7f
+test 783348e75aeb0f2fd7b169bb8dc16787 f7c013ac5b2b8952e5e554abe9ced2d2 a1c0e9215141343dec2b556942c92bde
+test dc49db1375a5584f6485b413b5f12baf 2f42b3b70369fc929ae068313f343a7a 3fbe6811b998cdf3e50abde2f3c075e3
+test 5269f149d41ba0152497574d7f153125 65c178b284d197ccd3f111a282f17f29 d7b7209e0879744c782809b6d2e0b1b0
View
22 test/data/ciphers/twofishv.dat
@@ -1,11 +1,11 @@
-algorithm cipher TWOFISH
-fields key_hex plaintext_hex ciphertext_hex
-test 00000000000000000000000000000000 00000000000000000000000000000000 9f589f5cf6122c32b6bfec2f2ae8c35a
-test 00000000000000000000000000000000 9f589f5cf6122c32b6bfec2f2ae8c35a d491db16e7b1c39e86cb086b789f5419
-test 9f589f5cf6122c32b6bfec2f2ae8c35a d491db16e7b1c39e86cb086b789f5419 019f9809de1711858faac3a3ba20fbc3
-test d491db16e7b1c39e86cb086b789f5419 019f9809de1711858faac3a3ba20fbc3 6363977de839486297e661c6c9d668eb
-test 000000000000000000000000000000000000000000000000 00000000000000000000000000000000 efa71f788965bd4453f860178fc19101
-test efa71f788965bd4453f860178fc191010000000000000000 88b2b2706b105e36b446bb6d731a1e88 39da69d6ba4997d585b6dc073ca341b2
-test 88b2b2706b105e36b446bb6d731a1e88efa71f788965bd44 39da69d6ba4997d585b6dc073ca341b2 182b02d81497ea45f9daacdc29193a65
-test 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 57ff739d4dc92c1bd7fc01700cc8216f
-test d43bb7556ea32e46f2a282b7d45b4e0d57ff739d4dc92c1bd7fc01700cc8216f 90afe91bb288544f2c32dc239b2635e6 6cb4561c40bf0a9705931cb6d408e7fa
+algorithm cipher twofish
+fields key_hex plaintext_hex ciphertext_hex
+test 00000000000000000000000000000000 00000000000000000000000000000000 9f589f5cf6122c32b6bfec2f2ae8c35a
+test 00000000000000000000000000000000 9f589f5cf6122c32b6bfec2f2ae8c35a d491db16e7b1c39e86cb086b789f5419
+test 9f589f5cf6122c32b6bfec2f2ae8c35a d491db16e7b1c39e86cb086b789f5419 019f9809de1711858faac3a3ba20fbc3
+test d491db16e7b1c39e86cb086b789f5419 019f9809de1711858faac3a3ba20fbc3 6363977de839486297e661c6c9d668eb
+test 000000000000000000000000000000000000000000000000 00000000000000000000000000000000 efa71f788965bd4453f860178fc19101
+test efa71f788965bd4453f860178fc191010000000000000000 88b2b2706b105e36b446bb6d731a1e88 39da69d6ba4997d585b6dc073ca341b2
+test 88b2b2706b105e36b446bb6d731a1e88efa71f788965bd44 39da69d6ba4997d585b6dc073ca341b2 182b02d81497ea45f9daacdc29193a65
+test 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 57ff739d4dc92c1bd7fc01700cc8216f
+test d43bb7556ea32e46f2a282b7d45b4e0d57ff739d4dc92c1bd7fc01700cc8216f 90afe91bb288544f2c32dc239b2635e6 6cb4561c40bf0a9705931cb6d408e7fa
View
2 test/data/digests/adler32.dat
@@ -1,4 +1,4 @@
-algorithm checksum ADLER32
+algorithm checksum adler32
fields plaintext digest_hex
test 00000001
test a 00620062
View
2 test/data/digests/crc32.dat
@@ -1,4 +1,4 @@
-algorithm checksum CRC32
+algorithm checksum crc32
fields plaintext digest_hex
test 00000000
test a 43beb7e8
View
4 test/data/digests/haval.dat
@@ -1,4 +1,4 @@
-algorithm digest HAVAL5
+algorithm digest haval5
fields plaintext digest
test abcdefghijklmnopqrstuvwxyz c9c7d8afa159fd9e965cb83ff5ee6f58aeda352c0eff005548153a61551c38ee
-test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 b45cb6e62f2b1320e4f8f1b0b273d45add47c321fd23999dcf403ac37636d963
+test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 b45cb6e62f2b1320e4f8f1b0b273d45add47c321fd23999dcf403ac37636d963
View
46 test/data/digests/havalcer.dat
@@ -1,23 +1,23 @@
-3 128
-
-1BDC556B29AD02EC09AF8C66477F2A87
-
-3 160
-a
-5E1610FCED1D3ADB0BB18E92AC2B11F0BD99D8ED
-
-4 192
-HAVAL
-74AA31182FF09BCCE453A7F71B5A7C5E80872FA90CD93AE4
-
-4 224
-0123456789
-144CB2DE11F05DF7C356282A3B485796DA653F6B702868C7DCF4AE76
-
-5 256
-abcdefghijklmnopqrstuvwxyz
-1A1DC8099BDAA7F35B4DA4E805F1A28FEE909D8DEE920198185CBCAED8A10A8D
-
-5 256
-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
-C5647FC6C1877FFF96742F27E9266B6874894F41A08F5913033D9D532AEDDB39
+3 128
+
+1BDC556B29AD02EC09AF8C66477F2A87
+
+3 160
+a
+5E1610FCED1D3ADB0BB18E92AC2B11F0BD99D8ED
+
+4 192
+HAVAL
+74AA31182FF09BCCE453A7F71B5A7C5E80872FA90CD93AE4
+
+4 224
+0123456789
+144CB2DE11F05DF7C356282A3B485796DA653F6B702868C7DCF4AE76
+
+5 256
+abcdefghijklmnopqrstuvwxyz
+1A1DC8099BDAA7F35B4DA4E805F1A28FEE909D8DEE920198185CBCAED8A10A8D
+
+5 256
+ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
+C5647FC6C1877FFF96742F27E9266B6874894F41A08F5913033D9D532AEDDB39
View
2 test/data/digests/md2.dat
@@ -1,4 +1,4 @@
-algorithm digest MD2
+algorithm digest md2
fields plaintext digest_hex
test 8350e5a3e24c153df2275c9f80692773
test a 32ec01ec4a6dac72c0ab96fb34c0b5d1
View
4 test/data/digests/md4.dat
@@ -1,9 +1,9 @@
-algorithm digest MD4
+algorithm digest md4
fields plaintext digest_hex
test 31d6cfe0d16ae931b73c59d7e0c089c0
test a bde52cb31de33e46245e05fbdbd6fb24
test abc a448017aaf21d8525fc10ae87aa6729d
test message digest d9130a8164549fe818874806e1c7014b
test abcdefghijklmnopqrstuvwxyz d79e1c308aa5bbcdeea8ed63df412da9
test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 043f8582f241db351ce627e153e7f0e4
-test 12345678901234567890123456789012345678901234567890123456789012345678901234567890 e33b4ddc9c38f2199c3e7b164fcc0536
+test 12345678901234567890123456789012345678901234567890123456789012345678901234567890 e33b4ddc9c38f2199c3e7b164fcc0536
View
2 test/data/digests/md5.dat
@@ -1,4 +1,4 @@
-algorithm digest MD5
+algorithm digest md5
fields plaintext digest_hex
test d41d8cd98f00b204e9800998ecf8427e
test a 0cc175b9c0f1b6a831c399e269772661
View
6 test/data/digests/panamah.dat
@@ -1,8 +1,8 @@
-algorithm digest PANAMA_LITTLE_ENDIAN
+algorithm digest panama_le
fields plaintext digest_hex
test aa0cc954d757d7ac7779ca3342334ca471abd47d5952ac91ed837ecd5b16922b
test The quick brown fox jumps over the lazy dog 5f5ca355b90ac622b0aa7e654ef5f27e9e75111415b48b8afe3add1c6b89cba1
-algorithm digest PANAMA_BIG_ENDIAN
+algorithm digest panama_be
fields plaintext digest_hex
test e81aa04523532dd7267e5c5bc3ba0e289837a62ba032350351980e960a84b0af
-test The quick brown fox jumps over the lazy dog 8fa7dadce0110f979a0b795e76b2c25628d8bda88747758149c42e3bc13f85bc
+test The quick brown fox jumps over the lazy dog 8fa7dadce0110f979a0b795e76b2c25628d8bda88747758149c42e3bc13f85bc
View
8 test/data/digests/ripemd.dat
@@ -1,4 +1,4 @@
-algorithm digest RIPEMD128
+algorithm digest ripemd128
fields plaintext digest_hex
test cdf26213a150dc3ecb610f18f6b38b46
test a 86be7afa339d0fc7cfc785e72f578d33
@@ -9,7 +9,7 @@ test abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq a1aa0689d0fafa2ddc
test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 d1e959eb179c911faea4624c60c5c702
test 12345678901234567890123456789012345678901234567890123456789012345678901234567890 3f45ef194732c2dbb2c4a2c769795fa3
-algorithm digest RIPEMD160
+algorithm digest ripemd160
fields plaintext digest_hex
test 9c1185a5c5e9fc54612808977ee8f548b2258d31
test a 0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
@@ -20,7 +20,7 @@ test abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq 12a053384a9c0c88e4
test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 b0e20b6e3116640286ed3a87a5713079b21f5189
test 12345678901234567890123456789012345678901234567890123456789012345678901234567890 9b752e45573d4b39f4dbd3323cab82bf63326bfb
-algorithm digest RIPEMD256
+algorithm digest ripemd256
fields plaintext digest_hex
test 02ba4c4e5f8ecd1877fc52d64d30e37a2d9774fb1e5d026380ae0168e3c5522d
test a f9333e45d857f5d90a91bab70a1eba0cfb1be4b0783c9acfcd883a9134692925
@@ -31,7 +31,7 @@ test abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq 3843045583aac6c8c8
test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 5740a408ac16b720b84424ae931cbb1fe363d1d0bf4017f1a89f7ea6de77a0b8
test 12345678901234567890123456789012345678901234567890123456789012345678901234567890 06fdcc7a409548aaf91368c06a6275b553e3f099bf0ea4edfd6778df89a890dd
-algorithm digest RIPEMD320
+algorithm digest ripemd320
fields plaintext digest_hex
test 22d65d5661536cdc75c1fdf5c6de7b41b9f27325ebc61e8557177d705a0ec880151c3a32a00899b8
test a ce78850638f92658a5a585097579926dda667a5716562cfcf6fbe77f63542f99b04705d6970dff5d
View
8 test/data/digests/sha.dat
@@ -1,19 +1,19 @@
-algorithm digest SHA1
+algorithm digest sha1
fields plaintext digest_hex
test abc a9993e364706816aba3e25717850c26c9cd0d89d
test abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq 84983e441c3bd26ebaae4aa1f95129e5e54670f1
-algorithm digest SHA256
+algorithm digest sha256
fields plaintext digest_hex
test abc ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
test abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq 248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1
-algorithm digest SHA384
+algorithm digest sha384
fields plaintext digest_hex
test abc cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7
test abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu 09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039
-algorithm digest SHA512
+algorithm digest sha512
fields plaintext digest_hex
test abc ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
test abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu 8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909
View
4 test/data/digests/tiger.dat
@@ -1,4 +1,4 @@
-algorithm digest TIGER
+algorithm digest tiger
fields plaintext digest_hex
test 3293ac630c13f0245f92bbb1766e16167a4e58492dde73f3
test abc 2aab1484e8c158f2bfb8c5ff41b57a525129131c957b5f93
@@ -8,4 +8,4 @@ test ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789 48ceeb6308
test Tiger - A Fast New Hash Function, by Ross Anderson and Eli Biham 8a866829040a410c729ad23f5ada711603b3cdd357e4c15e
test Tiger - A Fast New Hash Function, by Ross Anderson and Eli Biham, proceedings of Fast Software Encryption 3, Cambridge. ce55a6afd591f5ebac547ff84f89227f9331dab0b611c889
test Tiger - A Fast New Hash Function, by Ross Anderson and Eli Biham, proceedings of Fast Software Encryption 3, Cambridge, 1996. 631abdd103eb9a3d245b6dfd4d77b257fc7439501d1568dd
-test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+- c54034e5b43eb8005848a7e0ae6aac76e4ff590ae715fd25
+test ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+- c54034e5b43eb8005848a7e0ae6aac76e4ff590ae715fd25
View
2 test/data/digests/whirlpool.dat
@@ -1,4 +1,4 @@
-algorithm digest WHIRLPOOL
+algorithm digest whirlpool
fields plaintext digest_hex
test 19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a73e83be698b288febcf88e3e03c4f0757ea8964e59b63d93708b138cc42a66eb3
test a 8aca2602792aec6f11a67206531fb7d7f0dff59413145e6973c45001d0087b42d11bc645413aeff63a42391a39145a591a92200d560195e53b478584fdae231a
View
13 test/test_helper.rb
@@ -1,6 +1,6 @@
require 'rubygems'
-require 'cryptopp'
+require 'ext/cryptopp'
module TestHelper
def readfile(file)
@@ -10,12 +10,7 @@ def readfile(file)
case l.shift
when 'algorithm'
type = l.shift.upcase
- algorithm = l.shift
- if CryptoPP.cipher_enabled? CryptoPP::Constants.const_get("#{algorithm}_#{type}")
- algorithm = CryptoPP::Constants.const_get("#{algorithm}_#{type}")
- else
- return
- end
+ algorithm = l.shift.to_sym
when 'fields'
fields = l
when 'test'
@@ -31,9 +26,9 @@ def readfile(file)
when 'key_repeat'
options[:key] || options[:key_hex] *= l.shift.to_i
when 'block_mode'
- options[:block_mode] = CryptoPP::Constants.const_get("#{l.shift}_BLOCK_MODE")
+ options[:block_mode] = l.shift.to_sym
when 'padding'
- options[:padding] = CryptoPP::Constants.const_get("#{l.shift}_PADDING")
+ options[:padding] = l.shift.to_sym
else
options[i.to_sym] = l.shift
end

0 comments on commit 272921b

Please sign in to comment.