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 9 #The following tests were generated using legacy code, to ensure that the 10 #provider ciphers have identical results. 11 Title = RC5 Tests 12 13 Availablein = legacy 14 Cipher = RC5-ECB 15 Key = 00000000000000000000000000000000 16 Plaintext = 0000000000000000 17 Ciphertext = 21a5dbee154b8f6d 18 19 Availablein = legacy 20 Cipher = RC5-ECB 21 Key = 00000000000000000000000000000000 22 Plaintext = 000102030405060708090A0B0C0D0E0F 23 Ciphertext = d9d37019aec1161b27d7ad56b21f0f42 24 25 #Self generated. Bigger key. 26 Availablein = legacy 27 Cipher = RC5-ECB 28 Key = 0000000000000000000000000000000000000000 29 Plaintext = 000102030405060708090A0B0C0D0E0F 30 Ciphertext = 610084f3e141cbc5455b82e2d56da565 31 32 Availablein = legacy 33 Cipher = RC5-CBC 34 Key = 00000000000000000000000000000000 35 IV = 0000000000000000 36 Plaintext = 0000000000000000 37 Ciphertext = 21a5dbee154b8f6d 38 NextIV = 21a5dbee154b8f6d 39 40 Availablein = legacy 41 Cipher = RC5-CBC 42 Key = 0102030405060708090A0B0C0D0E0F10 43 IV = 0102030405060708 44 Plaintext = 000102030405060708090A0B0C0D0E0F 45 Ciphertext = eeebae12d768ac9e5b3d6072a9c76c65 46 NextIV = 5b3d6072a9c76c65 47 48 #Self generated. Bigger key. 49 Availablein = legacy 50 Cipher = RC5-CBC 51 Key = 0102030405060708090A0B0C0D0E0F1000000000 52 IV = 0102030405060708 53 Plaintext = 000102030405060708090A0B0C0D0E0F 54 Ciphertext = af64972111a80ec28871c51dd4bfe8de 55 NextIV = 8871c51dd4bfe8de 56 57 Availablein = legacy 58 Cipher = RC5-OFB 59 Key = 00000000000000000000000000000000 60 IV = 0000000000000000 61 Plaintext = 0000000000000000 62 Ciphertext = 21a5dbee154b8f6d 63 NextIV = 21a5dbee154b8f6d 64 65 Availablein = legacy 66 Cipher = RC5-OFB 67 Key = 0102030405060708090A0B0C0D0E0F10 68 IV = 0102030405060708 69 Plaintext = 000102030405060708090A0B0C0D0E0F 70 Ciphertext = c0ad101b40fc7ffdfc386ea5ecf458b7 71 NextIV = f43164aee0f956b8 72 73 #Self generated. Bigger key. 74 Availablein = legacy 75 Cipher = RC5-OFB 76 Key = 0102030405060708090A0B0C0D0E0F1000000000 77 IV = 0102030405060708 78 Plaintext = 000102030405060708090A0B0C0D0E0F 79 Ciphertext = 66ff8fee03d45533dde93632e8f81f6f 80 NextIV = d5e03c39e4f51160 81 82 Availablein = legacy 83 Cipher = RC5-CFB 84 Key = 00000000000000000000000000000000 85 IV = 0000000000000000 86 Plaintext = 0000000000000000 87 Ciphertext = 21a5dbee154b8f6d 88 NextIV = 21a5dbee154b8f6d 89 90 Availablein = legacy 91 Cipher = RC5-CFB 92 Key = 0102030405060708090A0B0C0D0E0F10 93 IV = 0102030405060708 94 Plaintext = 000102030405060708090A0B0C0D0E0F 95 Ciphertext = c0ad101b40fc7ffdeb97c6173bf2987e 96 NextIV = eb97c6173bf2987e 97 98 Availablein = legacy 99 Cipher = RC5-CFB 100 Key = 0102030405060708090A0B0C0D0E0F10 101 IV = 0102030405060708 102 Rounds = 8 103 Plaintext = 000102030405060708090A0B0C0D0E0F 104 Ciphertext = 439945301dfa830885ac2f3cf5e61d0e 105 106 Availablein = legacy 107 Cipher = RC5-CFB 108 Key = 0102030405060708090A0B0C0D0E0F10 109 IV = 0102030405060708 110 Rounds = 16 111 Plaintext = 000102030405060708090A0B0C0D0E0F 112 Ciphertext = 5ad80530f4a19e622d03cd4f2b165730 113 114 #Bad rounds 115 Availablein = legacy 116 Cipher = RC5-CFB 117 Key = 0102030405060708090A0B0C0D0E0F10 118 IV = 0102030405060708 119 Rounds = 9 120 Plaintext = 000102030405060708090A0B0C0D0E0F 121 Result = INVALID_ROUNDS 122 123 #bigger key 124 Availablein = legacy 125 Cipher = RC5-CFB 126 Key = 0102030405060708090A0B0C0D0E0F101213141516 127 IV = 0102030405060708 128 Plaintext = 000102030405060708090A0B0C0D0E0F 129 Ciphertext = b3724d2d9d1b9285e1338fd266c2277d 130