test_suite_des.data 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. DES check weak key #1
  2. des_check_weak:"0101010101010101":1
  3. DES check weak key #2
  4. des_check_weak:"FEE0FEE0FEF1FEF1":1
  5. DES check weak key #3
  6. des_check_weak:"0101010101010100":0
  7. DES check weak key #4
  8. des_check_weak:"EEE0FEE0FEF1FEF1":0
  9. DES Encrypt OpenSSL Test Vector #1
  10. des_encrypt_ecb:"0000000000000000":"0000000000000000":"8CA64DE9C1B123A7"
  11. DES Encrypt OpenSSL Test Vector #2
  12. des_encrypt_ecb:"FFFFFFFFFFFFFFFF":"FFFFFFFFFFFFFFFF":"7359B2163E4EDC58"
  13. DES Encrypt OpenSSL Test Vector #3
  14. des_encrypt_ecb:"3000000000000000":"1000000000000001":"958E6E627A05557B"
  15. DES Encrypt OpenSSL Test Vector #4
  16. des_encrypt_ecb:"1111111111111111":"1111111111111111":"F40379AB9E0EC533"
  17. DES Encrypt OpenSSL Test Vector #5
  18. des_encrypt_ecb:"0123456789ABCDEF":"1111111111111111":"17668DFC7292532D"
  19. DES Encrypt OpenSSL Test Vector #6
  20. des_encrypt_ecb:"1111111111111111":"0123456789ABCDEF":"8A5AE1F81AB8F2DD"
  21. DES Encrypt OpenSSL Test Vector #7
  22. des_encrypt_ecb:"0000000000000000":"0000000000000000":"8CA64DE9C1B123A7"
  23. DES Encrypt OpenSSL Test Vector #8
  24. des_encrypt_ecb:"FEDCBA9876543210":"0123456789ABCDEF":"ED39D950FA74BCC4"
  25. DES Encrypt OpenSSL Test Vector #9
  26. des_encrypt_ecb:"7CA110454A1A6E57":"01A1D6D039776742":"690F5B0D9A26939B"
  27. DES Encrypt OpenSSL Test Vector #10
  28. des_encrypt_ecb:"0131D9619DC1376E":"5CD54CA83DEF57DA":"7A389D10354BD271"
  29. DES Encrypt OpenSSL Test Vector #11
  30. des_encrypt_ecb:"07A1133E4A0B2686":"0248D43806F67172":"868EBB51CAB4599A"
  31. DES Encrypt OpenSSL Test Vector #12
  32. des_encrypt_ecb:"3849674C2602319E":"51454B582DDF440A":"7178876E01F19B2A"
  33. DES Encrypt OpenSSL Test Vector #13
  34. des_encrypt_ecb:"04B915BA43FEB5B6":"42FD443059577FA2":"AF37FB421F8C4095"
  35. DES Encrypt OpenSSL Test Vector #14
  36. des_encrypt_ecb:"0113B970FD34F2CE":"059B5E0851CF143A":"86A560F10EC6D85B"
  37. DES Encrypt OpenSSL Test Vector #15
  38. des_encrypt_ecb:"0170F175468FB5E6":"0756D8E0774761D2":"0CD3DA020021DC09"
  39. DES Encrypt OpenSSL Test Vector #16
  40. des_encrypt_ecb:"43297FAD38E373FE":"762514B829BF486A":"EA676B2CB7DB2B7A"
  41. DES Encrypt OpenSSL Test Vector #17
  42. des_encrypt_ecb:"07A7137045DA2A16":"3BDD119049372802":"DFD64A815CAF1A0F"
  43. DES Encrypt OpenSSL Test Vector #18
  44. des_encrypt_ecb:"04689104C2FD3B2F":"26955F6835AF609A":"5C513C9C4886C088"
  45. DES Encrypt OpenSSL Test Vector #19
  46. des_encrypt_ecb:"37D06BB516CB7546":"164D5E404F275232":"0A2AEEAE3FF4AB77"
  47. DES Encrypt OpenSSL Test Vector #20
  48. des_encrypt_ecb:"1F08260D1AC2465E":"6B056E18759F5CCA":"EF1BF03E5DFA575A"
  49. DES Encrypt OpenSSL Test Vector #21
  50. des_encrypt_ecb:"584023641ABA6176":"004BD6EF09176062":"88BF0DB6D70DEE56"
  51. DES Encrypt OpenSSL Test Vector #22
  52. des_encrypt_ecb:"025816164629B007":"480D39006EE762F2":"A1F9915541020B56"
  53. DES Encrypt OpenSSL Test Vector #23
  54. des_encrypt_ecb:"49793EBC79B3258F":"437540C8698F3CFA":"6FBF1CAFCFFD0556"
  55. DES Encrypt OpenSSL Test Vector #24
  56. des_encrypt_ecb:"4FB05E1515AB73A7":"072D43A077075292":"2F22E49BAB7CA1AC"
  57. DES Encrypt OpenSSL Test Vector #25
  58. des_encrypt_ecb:"49E95D6D4CA229BF":"02FE55778117F12A":"5A6B612CC26CCE4A"
  59. DES Encrypt OpenSSL Test Vector #26
  60. des_encrypt_ecb:"018310DC409B26D6":"1D9D5C5018F728C2":"5F4C038ED12B2E41"
  61. DES Encrypt OpenSSL Test Vector #27
  62. des_encrypt_ecb:"1C587F1C13924FEF":"305532286D6F295A":"63FAC0D034D9F793"
  63. DES Encrypt OpenSSL Test Vector #28
  64. des_encrypt_ecb:"0101010101010101":"0123456789ABCDEF":"617B3A0CE8F07100"
  65. DES Encrypt OpenSSL Test Vector #29
  66. des_encrypt_ecb:"1F1F1F1F0E0E0E0E":"0123456789ABCDEF":"DB958605F8C8C606"
  67. DES Encrypt OpenSSL Test Vector #30
  68. des_encrypt_ecb:"E0FEE0FEF1FEF1FE":"0123456789ABCDEF":"EDBFD1C66C29CCC7"
  69. DES Encrypt OpenSSL Test Vector #31
  70. des_encrypt_ecb:"0000000000000000":"FFFFFFFFFFFFFFFF":"355550B2150E2451"
  71. DES Encrypt OpenSSL Test Vector #32
  72. des_encrypt_ecb:"FFFFFFFFFFFFFFFF":"0000000000000000":"CAAAAF4DEAF1DBAE"
  73. DES Encrypt OpenSSL Test Vector #33
  74. des_encrypt_ecb:"0123456789ABCDEF":"0000000000000000":"D5D44FF720683D0D"
  75. DES Encrypt OpenSSL Test Vector #34
  76. des_encrypt_ecb:"FEDCBA9876543210":"FFFFFFFFFFFFFFFF":"2A2BB008DF97C2F2"
  77. DES Decrypt OpenSSL Test Vector #1
  78. des_decrypt_ecb:"0000000000000000":"8CA64DE9C1B123A7":"0000000000000000"
  79. DES Decrypt OpenSSL Test Vector #2
  80. des_decrypt_ecb:"FFFFFFFFFFFFFFFF":"7359B2163E4EDC58":"FFFFFFFFFFFFFFFF"
  81. DES Decrypt OpenSSL Test Vector #3
  82. des_decrypt_ecb:"3000000000000000":"958E6E627A05557B":"1000000000000001"
  83. DES Decrypt OpenSSL Test Vector #4
  84. des_decrypt_ecb:"1111111111111111":"F40379AB9E0EC533":"1111111111111111"
  85. DES Decrypt OpenSSL Test Vector #5
  86. des_decrypt_ecb:"0123456789ABCDEF":"17668DFC7292532D":"1111111111111111"
  87. DES Decrypt OpenSSL Test Vector #6
  88. des_decrypt_ecb:"1111111111111111":"8A5AE1F81AB8F2DD":"0123456789ABCDEF"
  89. DES Decrypt OpenSSL Test Vector #7
  90. des_decrypt_ecb:"0000000000000000":"8CA64DE9C1B123A7":"0000000000000000"
  91. DES Decrypt OpenSSL Test Vector #8
  92. des_decrypt_ecb:"FEDCBA9876543210":"ED39D950FA74BCC4":"0123456789ABCDEF"
  93. DES Decrypt OpenSSL Test Vector #9
  94. des_decrypt_ecb:"7CA110454A1A6E57":"690F5B0D9A26939B":"01A1D6D039776742"
  95. DES Decrypt OpenSSL Test Vector #10
  96. des_decrypt_ecb:"0131D9619DC1376E":"7A389D10354BD271":"5CD54CA83DEF57DA"
  97. DES Decrypt OpenSSL Test Vector #11
  98. des_decrypt_ecb:"07A1133E4A0B2686":"868EBB51CAB4599A":"0248D43806F67172"
  99. DES Decrypt OpenSSL Test Vector #12
  100. des_decrypt_ecb:"3849674C2602319E":"7178876E01F19B2A":"51454B582DDF440A"
  101. DES Decrypt OpenSSL Test Vector #13
  102. des_decrypt_ecb:"04B915BA43FEB5B6":"AF37FB421F8C4095":"42FD443059577FA2"
  103. DES Decrypt OpenSSL Test Vector #14
  104. des_decrypt_ecb:"0113B970FD34F2CE":"86A560F10EC6D85B":"059B5E0851CF143A"
  105. DES Decrypt OpenSSL Test Vector #15
  106. des_decrypt_ecb:"0170F175468FB5E6":"0CD3DA020021DC09":"0756D8E0774761D2"
  107. DES Decrypt OpenSSL Test Vector #16
  108. des_decrypt_ecb:"43297FAD38E373FE":"EA676B2CB7DB2B7A":"762514B829BF486A"
  109. DES Decrypt OpenSSL Test Vector #17
  110. des_decrypt_ecb:"07A7137045DA2A16":"DFD64A815CAF1A0F":"3BDD119049372802"
  111. DES Decrypt OpenSSL Test Vector #18
  112. des_decrypt_ecb:"04689104C2FD3B2F":"5C513C9C4886C088":"26955F6835AF609A"
  113. DES Decrypt OpenSSL Test Vector #19
  114. des_decrypt_ecb:"37D06BB516CB7546":"0A2AEEAE3FF4AB77":"164D5E404F275232"
  115. DES Decrypt OpenSSL Test Vector #20
  116. des_decrypt_ecb:"1F08260D1AC2465E":"EF1BF03E5DFA575A":"6B056E18759F5CCA"
  117. DES Decrypt OpenSSL Test Vector #21
  118. des_decrypt_ecb:"584023641ABA6176":"88BF0DB6D70DEE56":"004BD6EF09176062"
  119. DES Decrypt OpenSSL Test Vector #22
  120. des_decrypt_ecb:"025816164629B007":"A1F9915541020B56":"480D39006EE762F2"
  121. DES Decrypt OpenSSL Test Vector #23
  122. des_decrypt_ecb:"49793EBC79B3258F":"6FBF1CAFCFFD0556":"437540C8698F3CFA"
  123. DES Decrypt OpenSSL Test Vector #24
  124. des_decrypt_ecb:"4FB05E1515AB73A7":"2F22E49BAB7CA1AC":"072D43A077075292"
  125. DES Decrypt OpenSSL Test Vector #25
  126. des_decrypt_ecb:"49E95D6D4CA229BF":"5A6B612CC26CCE4A":"02FE55778117F12A"
  127. DES Decrypt OpenSSL Test Vector #26
  128. des_decrypt_ecb:"018310DC409B26D6":"5F4C038ED12B2E41":"1D9D5C5018F728C2"
  129. DES Decrypt OpenSSL Test Vector #27
  130. des_decrypt_ecb:"1C587F1C13924FEF":"63FAC0D034D9F793":"305532286D6F295A"
  131. DES Decrypt OpenSSL Test Vector #28
  132. des_decrypt_ecb:"0101010101010101":"617B3A0CE8F07100":"0123456789ABCDEF"
  133. DES Decrypt OpenSSL Test Vector #29
  134. des_decrypt_ecb:"1F1F1F1F0E0E0E0E":"DB958605F8C8C606":"0123456789ABCDEF"
  135. DES Decrypt OpenSSL Test Vector #30
  136. des_decrypt_ecb:"E0FEE0FEF1FEF1FE":"EDBFD1C66C29CCC7":"0123456789ABCDEF"
  137. DES Decrypt OpenSSL Test Vector #31
  138. des_decrypt_ecb:"0000000000000000":"355550B2150E2451":"FFFFFFFFFFFFFFFF"
  139. DES Decrypt OpenSSL Test Vector #32
  140. des_decrypt_ecb:"FFFFFFFFFFFFFFFF":"CAAAAF4DEAF1DBAE":"0000000000000000"
  141. DES Decrypt OpenSSL Test Vector #33
  142. des_decrypt_ecb:"0123456789ABCDEF":"D5D44FF720683D0D":"0000000000000000"
  143. DES Decrypt OpenSSL Test Vector #34
  144. des_decrypt_ecb:"FEDCBA9876543210":"2A2BB008DF97C2F2":"FFFFFFFFFFFFFFFF"
  145. DES-CBC Encrypt OpenSSL Test Vector #1
  146. des_encrypt_cbc:"0123456789abcdef":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D6520":"ccd173ffab2039f4acd8aefddfd8a1eb468e91157888ba68":0
  147. DES-CBC Decrypt OpenSSL Test Vector #1
  148. des_decrypt_cbc:"0123456789abcdef":"fedcba9876543210":"ccd173ffab2039f4acd8aefddfd8a1eb468e91157888ba68":"37363534333231204E6F77206973207468652074696D6520":0
  149. 3DES-ECB 2Key Encrypt OpenSSL Test Vector #1
  150. des3_encrypt_ecb:2:"0000000000000000FFFFFFFFFFFFFFFF":"0000000000000000":"9295B59BB384736E"
  151. 3DES-ECB 2Key Encrypt OpenSSL Test Vector #2
  152. des3_encrypt_ecb:2:"FFFFFFFFFFFFFFFF3000000000000000":"FFFFFFFFFFFFFFFF":"199E9D6DF39AA816"
  153. 3DES-ECB 2Key Decrypt OpenSSL Test Vector #1
  154. des3_decrypt_ecb:2:"0000000000000000FFFFFFFFFFFFFFFF":"9295B59BB384736E":"0000000000000000"
  155. 3DES-ECB 2Key Decrypt OpenSSL Test Vector #2
  156. des3_decrypt_ecb:2:"FFFFFFFFFFFFFFFF3000000000000000":"199E9D6DF39AA816":"FFFFFFFFFFFFFFFF"
  157. 3DES-CBC 3Key Encrypt OpenSSL Test Vector #1
  158. des3_encrypt_cbc:3:"0123456789abcdeff1e0d3c2b5a49786fedcba9876543210":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D6520":"3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D4":0
  159. 3DES-CBC 3Key Decrypt OpenSSL Test Vector #1
  160. des3_decrypt_cbc:3:"0123456789abcdeff1e0d3c2b5a49786fedcba9876543210":"fedcba9876543210":"3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D4":"37363534333231204E6F77206973207468652074696D6520":0
  161. DES-CBC Encrypt (Invalid input length)
  162. des_encrypt_cbc:"0123456789abcdef":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D65":"":MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
  163. 3DES-CBC 3Key Encrypt (Invalid input length)
  164. des3_encrypt_cbc:3:"0123456789abcdeff1e0d3c2b5a49786fedcba9876543210":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D65":"":MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
  165. Run through parity bit tests
  166. des_key_parity_run:
  167. DES Selftest
  168. des_selftest: