1e1051a39Sopenharmony_ci#
2e1051a39Sopenharmony_ci# Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
3e1051a39Sopenharmony_ci#
4e1051a39Sopenharmony_ci# Licensed under the Apache License 2.0 (the "License").  You may not use
5e1051a39Sopenharmony_ci# this file except in compliance with the License.  You can obtain a copy
6e1051a39Sopenharmony_ci# in the file LICENSE in the source distribution or at
7e1051a39Sopenharmony_ci# https://www.openssl.org/source/license.html
8e1051a39Sopenharmony_ci
9e1051a39Sopenharmony_ci#The following tests were generated using legacy code, to ensure that the
10e1051a39Sopenharmony_ci#provider ciphers have identical results.
11e1051a39Sopenharmony_ciTitle = RC5 Tests
12e1051a39Sopenharmony_ci
13e1051a39Sopenharmony_ciAvailablein = legacy
14e1051a39Sopenharmony_ciCipher = RC5-ECB
15e1051a39Sopenharmony_ciKey = 00000000000000000000000000000000
16e1051a39Sopenharmony_ciPlaintext = 0000000000000000
17e1051a39Sopenharmony_ciCiphertext = 21a5dbee154b8f6d
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_ciAvailablein = legacy
20e1051a39Sopenharmony_ciCipher = RC5-ECB
21e1051a39Sopenharmony_ciKey = 00000000000000000000000000000000
22e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
23e1051a39Sopenharmony_ciCiphertext = d9d37019aec1161b27d7ad56b21f0f42
24e1051a39Sopenharmony_ci
25e1051a39Sopenharmony_ci#Self generated. Bigger key.
26e1051a39Sopenharmony_ciAvailablein = legacy
27e1051a39Sopenharmony_ciCipher = RC5-ECB
28e1051a39Sopenharmony_ciKey = 0000000000000000000000000000000000000000
29e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
30e1051a39Sopenharmony_ciCiphertext = 610084f3e141cbc5455b82e2d56da565
31e1051a39Sopenharmony_ci
32e1051a39Sopenharmony_ciAvailablein = legacy
33e1051a39Sopenharmony_ciCipher = RC5-CBC
34e1051a39Sopenharmony_ciKey = 00000000000000000000000000000000
35e1051a39Sopenharmony_ciIV = 0000000000000000
36e1051a39Sopenharmony_ciPlaintext = 0000000000000000
37e1051a39Sopenharmony_ciCiphertext = 21a5dbee154b8f6d
38e1051a39Sopenharmony_ciNextIV = 21a5dbee154b8f6d
39e1051a39Sopenharmony_ci
40e1051a39Sopenharmony_ciAvailablein = legacy
41e1051a39Sopenharmony_ciCipher = RC5-CBC
42e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F10
43e1051a39Sopenharmony_ciIV = 0102030405060708
44e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
45e1051a39Sopenharmony_ciCiphertext = eeebae12d768ac9e5b3d6072a9c76c65
46e1051a39Sopenharmony_ciNextIV = 5b3d6072a9c76c65
47e1051a39Sopenharmony_ci
48e1051a39Sopenharmony_ci#Self generated. Bigger key.
49e1051a39Sopenharmony_ciAvailablein = legacy
50e1051a39Sopenharmony_ciCipher = RC5-CBC
51e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F1000000000
52e1051a39Sopenharmony_ciIV = 0102030405060708
53e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
54e1051a39Sopenharmony_ciCiphertext = af64972111a80ec28871c51dd4bfe8de
55e1051a39Sopenharmony_ciNextIV = 8871c51dd4bfe8de
56e1051a39Sopenharmony_ci
57e1051a39Sopenharmony_ciAvailablein = legacy
58e1051a39Sopenharmony_ciCipher = RC5-OFB
59e1051a39Sopenharmony_ciKey = 00000000000000000000000000000000
60e1051a39Sopenharmony_ciIV = 0000000000000000
61e1051a39Sopenharmony_ciPlaintext = 0000000000000000
62e1051a39Sopenharmony_ciCiphertext = 21a5dbee154b8f6d
63e1051a39Sopenharmony_ciNextIV = 21a5dbee154b8f6d
64e1051a39Sopenharmony_ci
65e1051a39Sopenharmony_ciAvailablein = legacy
66e1051a39Sopenharmony_ciCipher = RC5-OFB
67e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F10
68e1051a39Sopenharmony_ciIV = 0102030405060708
69e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
70e1051a39Sopenharmony_ciCiphertext = c0ad101b40fc7ffdfc386ea5ecf458b7
71e1051a39Sopenharmony_ciNextIV = f43164aee0f956b8
72e1051a39Sopenharmony_ci
73e1051a39Sopenharmony_ci#Self generated. Bigger key.
74e1051a39Sopenharmony_ciAvailablein = legacy
75e1051a39Sopenharmony_ciCipher = RC5-OFB
76e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F1000000000
77e1051a39Sopenharmony_ciIV = 0102030405060708
78e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
79e1051a39Sopenharmony_ciCiphertext = 66ff8fee03d45533dde93632e8f81f6f
80e1051a39Sopenharmony_ciNextIV = d5e03c39e4f51160
81e1051a39Sopenharmony_ci
82e1051a39Sopenharmony_ciAvailablein = legacy
83e1051a39Sopenharmony_ciCipher = RC5-CFB
84e1051a39Sopenharmony_ciKey = 00000000000000000000000000000000
85e1051a39Sopenharmony_ciIV = 0000000000000000
86e1051a39Sopenharmony_ciPlaintext = 0000000000000000
87e1051a39Sopenharmony_ciCiphertext = 21a5dbee154b8f6d
88e1051a39Sopenharmony_ciNextIV = 21a5dbee154b8f6d
89e1051a39Sopenharmony_ci
90e1051a39Sopenharmony_ciAvailablein = legacy
91e1051a39Sopenharmony_ciCipher = RC5-CFB
92e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F10
93e1051a39Sopenharmony_ciIV = 0102030405060708
94e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
95e1051a39Sopenharmony_ciCiphertext = c0ad101b40fc7ffdeb97c6173bf2987e
96e1051a39Sopenharmony_ciNextIV = eb97c6173bf2987e
97e1051a39Sopenharmony_ci
98e1051a39Sopenharmony_ciAvailablein = legacy
99e1051a39Sopenharmony_ciCipher = RC5-CFB
100e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F10
101e1051a39Sopenharmony_ciIV = 0102030405060708
102e1051a39Sopenharmony_ciRounds = 8
103e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
104e1051a39Sopenharmony_ciCiphertext = 439945301dfa830885ac2f3cf5e61d0e
105e1051a39Sopenharmony_ci
106e1051a39Sopenharmony_ciAvailablein = legacy
107e1051a39Sopenharmony_ciCipher = RC5-CFB
108e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F10
109e1051a39Sopenharmony_ciIV = 0102030405060708
110e1051a39Sopenharmony_ciRounds = 16
111e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
112e1051a39Sopenharmony_ciCiphertext = 5ad80530f4a19e622d03cd4f2b165730
113e1051a39Sopenharmony_ci
114e1051a39Sopenharmony_ci#Bad rounds
115e1051a39Sopenharmony_ciAvailablein = legacy
116e1051a39Sopenharmony_ciCipher = RC5-CFB
117e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F10
118e1051a39Sopenharmony_ciIV = 0102030405060708
119e1051a39Sopenharmony_ciRounds = 9
120e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
121e1051a39Sopenharmony_ciResult = INVALID_ROUNDS
122e1051a39Sopenharmony_ci
123e1051a39Sopenharmony_ci#bigger key
124e1051a39Sopenharmony_ciAvailablein = legacy
125e1051a39Sopenharmony_ciCipher = RC5-CFB
126e1051a39Sopenharmony_ciKey = 0102030405060708090A0B0C0D0E0F101213141516
127e1051a39Sopenharmony_ciIV = 0102030405060708
128e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
129e1051a39Sopenharmony_ciCiphertext = b3724d2d9d1b9285e1338fd266c2277d
130