evpciph_rc5.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #
  2. # Copyright 2019 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. #The following tests were generated using legacy code, to ensure that the
  9. #provider ciphers have identical results.
  10. Title = RC5 Tests
  11. Cipher = RC5-ECB
  12. Key = 00000000000000000000000000000000
  13. Plaintext = 0000000000000000
  14. Ciphertext = 21a5dbee154b8f6d
  15. Cipher = RC5-ECB
  16. Key = 00000000000000000000000000000000
  17. Plaintext = 000102030405060708090A0B0C0D0E0F
  18. Ciphertext = d9d37019aec1161b27d7ad56b21f0f42
  19. #Self generated. Bigger key.
  20. Cipher = RC5-ECB
  21. Key = 0000000000000000000000000000000000000000
  22. Plaintext = 000102030405060708090A0B0C0D0E0F
  23. Ciphertext = 610084f3e141cbc5455b82e2d56da565
  24. Cipher = RC5-CBC
  25. Key = 00000000000000000000000000000000
  26. IV = 0000000000000000
  27. Plaintext = 0000000000000000
  28. Ciphertext = 21a5dbee154b8f6d
  29. Cipher = RC5-CBC
  30. Key = 0102030405060708090A0B0C0D0E0F10
  31. IV = 0102030405060708
  32. Plaintext = 000102030405060708090A0B0C0D0E0F
  33. Ciphertext = eeebae12d768ac9e5b3d6072a9c76c65
  34. #Self generated. Bigger key.
  35. Cipher = RC5-CBC
  36. Key = 0102030405060708090A0B0C0D0E0F1000000000
  37. IV = 0102030405060708
  38. Plaintext = 000102030405060708090A0B0C0D0E0F
  39. Ciphertext = af64972111a80ec28871c51dd4bfe8de
  40. Cipher = RC5-OFB
  41. Key = 00000000000000000000000000000000
  42. IV = 0000000000000000
  43. Plaintext = 0000000000000000
  44. Ciphertext = 21a5dbee154b8f6d
  45. Cipher = RC5-OFB
  46. Key = 0102030405060708090A0B0C0D0E0F10
  47. IV = 0102030405060708
  48. Plaintext = 000102030405060708090A0B0C0D0E0F
  49. Ciphertext = c0ad101b40fc7ffdfc386ea5ecf458b7
  50. #Self generated. Bigger key.
  51. Cipher = RC5-OFB
  52. Key = 0102030405060708090A0B0C0D0E0F1000000000
  53. IV = 0102030405060708
  54. Plaintext = 000102030405060708090A0B0C0D0E0F
  55. Ciphertext = 66ff8fee03d45533dde93632e8f81f6f
  56. Cipher = RC5-CFB
  57. Key = 00000000000000000000000000000000
  58. IV = 0000000000000000
  59. Plaintext = 0000000000000000
  60. Ciphertext = 21a5dbee154b8f6d
  61. Cipher = RC5-CFB
  62. Key = 0102030405060708090A0B0C0D0E0F10
  63. IV = 0102030405060708
  64. Plaintext = 000102030405060708090A0B0C0D0E0F
  65. Ciphertext = c0ad101b40fc7ffdeb97c6173bf2987e
  66. Cipher = RC5-CFB
  67. Key = 0102030405060708090A0B0C0D0E0F10
  68. IV = 0102030405060708
  69. Rounds = 8
  70. Plaintext = 000102030405060708090A0B0C0D0E0F
  71. Ciphertext = 439945301dfa830885ac2f3cf5e61d0e
  72. Cipher = RC5-CFB
  73. Key = 0102030405060708090A0B0C0D0E0F10
  74. IV = 0102030405060708
  75. Rounds = 16
  76. Plaintext = 000102030405060708090A0B0C0D0E0F
  77. Ciphertext = 5ad80530f4a19e622d03cd4f2b165730
  78. #Bad rounds
  79. Cipher = RC5-CFB
  80. Key = 0102030405060708090A0B0C0D0E0F10
  81. IV = 0102030405060708
  82. Rounds = 9
  83. Plaintext = 000102030405060708090A0B0C0D0E0F
  84. Result = INVALID_ROUNDS
  85. #bigger key
  86. Cipher = RC5-CFB
  87. Key = 0102030405060708090A0B0C0D0E0F101213141516
  88. IV = 0102030405060708
  89. Plaintext = 000102030405060708090A0B0C0D0E0F
  90. Ciphertext = b3724d2d9d1b9285e1338fd266c2277d