evpciph_rc2.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #
  2. # Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License 2.0 (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. # A valid set of RC2 test vectors could not be found for all RC2 modes - the
  9. # following values were generated using the deprecated cipher code, in order to
  10. # confirm that the new provider code is equivalent.
  11. Title = RC2 Test vectors
  12. Availablein = legacy
  13. Cipher = RC2-ECB
  14. Key = 0000000000000000
  15. Plaintext = 000102030405060708090A0B0C0D0E0F
  16. Ciphertext = a4085a9f3e710563ae3b1e8c4339122b
  17. Availablein = legacy
  18. Cipher = RC2-ECB
  19. Key = 0000000000000000
  20. KeyBits = 63
  21. Plaintext = 000102030405060708090A0B0C0D0E0F
  22. Ciphertext = b406b9037baf2d86982af542e6d70b13
  23. Availablein = legacy
  24. Cipher = RC2-CBC
  25. Key = 0000000000000000
  26. IV = 0000000000000000
  27. Plaintext = 000102030405060708090A0B0C0D0E0F
  28. Ciphertext = a4085a9f3e710563d1091a1552ba8962
  29. Availablein = legacy
  30. Cipher = RC2-CBC
  31. Key = 0000000000000000
  32. KeyBits = 63
  33. IV = 0000000000000000
  34. Plaintext = 000102030405060708090A0B0C0D0E0F
  35. Ciphertext = b406b9037baf2d866614ef5e55e95b8d
  36. NextIV = 6614ef5e55e95b8d
  37. Availablein = legacy
  38. Cipher = RC2-40-CBC
  39. Key = 0000000000
  40. IV = 0000000000000000
  41. Plaintext = 0102030405060708
  42. Ciphertext = 61ae28bcf59d1f6f
  43. NextIV = 61ae28bcf59d1f6f
  44. Availablein = legacy
  45. Cipher = RC2-40-CBC
  46. Key = 0000000000
  47. KeyBits = 63
  48. IV = 0000000000000000
  49. Plaintext = 0102030405060708
  50. Ciphertext = c1d8e65290b2f06d
  51. Availablein = legacy
  52. Cipher = RC2-40-CBC
  53. Key = 000000000001
  54. IV = 0000000000000000
  55. Plaintext = 0102030405060708
  56. Ciphertext = b3ddf36b5c81b0db
  57. Availablein = legacy
  58. Cipher = RC2-64-CBC
  59. Key = 0000000000000000
  60. IV = 0000000000000000
  61. Plaintext = 0102030405060708
  62. Ciphertext = 191d1abf767bfbe7
  63. Availablein = legacy
  64. Cipher = RC2-64-CBC
  65. Key = 0000000000000000
  66. KeyBits = 63
  67. IV = 0000000000000000
  68. Plaintext = 0102030405060708
  69. Ciphertext = 191d1abf767bfbe7
  70. Availablein = legacy
  71. Cipher = RC2-CFB
  72. Key = 0000000000000000
  73. IV = 0000000000000000
  74. Plaintext = 000102030405060708090A0B0C0D0E0F
  75. Ciphertext = 81b5cc4d43119e987a2b526ea152f3fe
  76. Availablein = legacy
  77. Cipher = RC2-CFB
  78. Key = 0000000000000000
  79. KeyBits = 63
  80. IV = 0000000000000000
  81. Plaintext = 000102030405060708090A0B0C0D0E0F
  82. Ciphertext = ebb671fa972288f87cb1810b91f2ae39
  83. NextIV = 7cb1810b91f2ae39
  84. Availablein = legacy
  85. Cipher = RC2-OFB
  86. Key = 0000000000000000
  87. IV = 0000000000000000
  88. Plaintext = 000102030405060708090A0B0C0D0E0F
  89. Ciphertext = 81b5cc4d43119e9849bdb7ef7fb35eb7
  90. Availablein = legacy
  91. Cipher = RC2-OFB
  92. Key = 0000000000000000
  93. IV = 0000000000000000
  94. KeyBits = 63
  95. Plaintext = 000102030405060708090A0B0C0D0E0F
  96. Ciphertext = ebb671fa972288f8f8587d8069d61d58
  97. NextIV = f051778b65db1357
  98. Availablein = legacy
  99. Cipher = RC2-OFB
  100. Key = 0000000000000000
  101. IV = 000000000000000000
  102. Plaintext = 000102030405060708090A0B0C0D0E0F
  103. Result = INVALID_IV_LENGTH
  104. #Variable key length is allowed for RC2
  105. Availablein = legacy
  106. Cipher = RC2-OFB
  107. Key = 0000000000000000000000000000000000
  108. IV = 0000000000000000
  109. Plaintext = 000102030405060708090A0B0C0D0E0F
  110. Ciphertext = 1df8d70bb9c66ffc37869d8ed80d796b