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# A valid set of RC2 test vectors could not be found for all RC2 modes - the
10e1051a39Sopenharmony_ci# following values were generated using the deprecated cipher code, in order to
11e1051a39Sopenharmony_ci# confirm that the new provider code is equivalent.
12e1051a39Sopenharmony_ciTitle = RC2 Test vectors
13e1051a39Sopenharmony_ci
14e1051a39Sopenharmony_ciAvailablein = legacy
15e1051a39Sopenharmony_ciCipher = RC2-ECB
16e1051a39Sopenharmony_ciKey = 0000000000000000
17e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
18e1051a39Sopenharmony_ciCiphertext = a4085a9f3e710563ae3b1e8c4339122b
19e1051a39Sopenharmony_ci
20e1051a39Sopenharmony_ciAvailablein = legacy
21e1051a39Sopenharmony_ciCipher = RC2-ECB
22e1051a39Sopenharmony_ciKey = 0000000000000000
23e1051a39Sopenharmony_ciKeyBits = 63
24e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
25e1051a39Sopenharmony_ciCiphertext = b406b9037baf2d86982af542e6d70b13
26e1051a39Sopenharmony_ci
27e1051a39Sopenharmony_ciAvailablein = legacy
28e1051a39Sopenharmony_ciCipher = RC2-CBC
29e1051a39Sopenharmony_ciKey = 0000000000000000
30e1051a39Sopenharmony_ciIV = 0000000000000000
31e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
32e1051a39Sopenharmony_ciCiphertext = a4085a9f3e710563d1091a1552ba8962
33e1051a39Sopenharmony_ci
34e1051a39Sopenharmony_ciAvailablein = legacy
35e1051a39Sopenharmony_ciCipher = RC2-CBC
36e1051a39Sopenharmony_ciKey = 0000000000000000
37e1051a39Sopenharmony_ciKeyBits = 63
38e1051a39Sopenharmony_ciIV = 0000000000000000
39e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
40e1051a39Sopenharmony_ciCiphertext = b406b9037baf2d866614ef5e55e95b8d
41e1051a39Sopenharmony_ciNextIV = 6614ef5e55e95b8d
42e1051a39Sopenharmony_ci
43e1051a39Sopenharmony_ciAvailablein = legacy
44e1051a39Sopenharmony_ciCipher = RC2-40-CBC
45e1051a39Sopenharmony_ciKey = 0000000000
46e1051a39Sopenharmony_ciIV = 0000000000000000
47e1051a39Sopenharmony_ciPlaintext = 0102030405060708
48e1051a39Sopenharmony_ciCiphertext = 61ae28bcf59d1f6f
49e1051a39Sopenharmony_ciNextIV = 61ae28bcf59d1f6f
50e1051a39Sopenharmony_ci
51e1051a39Sopenharmony_ciAvailablein = legacy
52e1051a39Sopenharmony_ciCipher = RC2-40-CBC
53e1051a39Sopenharmony_ciKey = 0000000000
54e1051a39Sopenharmony_ciKeyBits = 63
55e1051a39Sopenharmony_ciIV = 0000000000000000
56e1051a39Sopenharmony_ciPlaintext = 0102030405060708
57e1051a39Sopenharmony_ciCiphertext = c1d8e65290b2f06d
58e1051a39Sopenharmony_ci
59e1051a39Sopenharmony_ciAvailablein = legacy
60e1051a39Sopenharmony_ciCipher = RC2-40-CBC
61e1051a39Sopenharmony_ciKey = 000000000001
62e1051a39Sopenharmony_ciIV = 0000000000000000
63e1051a39Sopenharmony_ciPlaintext = 0102030405060708
64e1051a39Sopenharmony_ciCiphertext = b3ddf36b5c81b0db
65e1051a39Sopenharmony_ci
66e1051a39Sopenharmony_ciAvailablein = legacy
67e1051a39Sopenharmony_ciCipher = RC2-64-CBC
68e1051a39Sopenharmony_ciKey = 0000000000000000
69e1051a39Sopenharmony_ciIV = 0000000000000000
70e1051a39Sopenharmony_ciPlaintext = 0102030405060708
71e1051a39Sopenharmony_ciCiphertext = 191d1abf767bfbe7
72e1051a39Sopenharmony_ci
73e1051a39Sopenharmony_ciAvailablein = legacy
74e1051a39Sopenharmony_ciCipher = RC2-64-CBC
75e1051a39Sopenharmony_ciKey = 0000000000000000
76e1051a39Sopenharmony_ciKeyBits = 63
77e1051a39Sopenharmony_ciIV = 0000000000000000
78e1051a39Sopenharmony_ciPlaintext = 0102030405060708
79e1051a39Sopenharmony_ciCiphertext = 191d1abf767bfbe7
80e1051a39Sopenharmony_ci
81e1051a39Sopenharmony_ciAvailablein = legacy
82e1051a39Sopenharmony_ciCipher = RC2-CFB
83e1051a39Sopenharmony_ciKey = 0000000000000000
84e1051a39Sopenharmony_ciIV = 0000000000000000
85e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
86e1051a39Sopenharmony_ciCiphertext = 81b5cc4d43119e987a2b526ea152f3fe
87e1051a39Sopenharmony_ci
88e1051a39Sopenharmony_ciAvailablein = legacy
89e1051a39Sopenharmony_ciCipher = RC2-CFB
90e1051a39Sopenharmony_ciKey = 0000000000000000
91e1051a39Sopenharmony_ciKeyBits = 63
92e1051a39Sopenharmony_ciIV = 0000000000000000
93e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
94e1051a39Sopenharmony_ciCiphertext = ebb671fa972288f87cb1810b91f2ae39
95e1051a39Sopenharmony_ciNextIV = 7cb1810b91f2ae39
96e1051a39Sopenharmony_ci
97e1051a39Sopenharmony_ciAvailablein = legacy
98e1051a39Sopenharmony_ciCipher = RC2-OFB
99e1051a39Sopenharmony_ciKey = 0000000000000000
100e1051a39Sopenharmony_ciIV = 0000000000000000
101e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
102e1051a39Sopenharmony_ciCiphertext = 81b5cc4d43119e9849bdb7ef7fb35eb7
103e1051a39Sopenharmony_ci
104e1051a39Sopenharmony_ciAvailablein = legacy
105e1051a39Sopenharmony_ciCipher = RC2-OFB
106e1051a39Sopenharmony_ciKey = 0000000000000000
107e1051a39Sopenharmony_ciIV = 0000000000000000
108e1051a39Sopenharmony_ciKeyBits = 63
109e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
110e1051a39Sopenharmony_ciCiphertext = ebb671fa972288f8f8587d8069d61d58
111e1051a39Sopenharmony_ciNextIV = f051778b65db1357
112e1051a39Sopenharmony_ci
113e1051a39Sopenharmony_ciAvailablein = legacy
114e1051a39Sopenharmony_ciCipher = RC2-OFB
115e1051a39Sopenharmony_ciKey = 0000000000000000
116e1051a39Sopenharmony_ciIV = 000000000000000000
117e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
118e1051a39Sopenharmony_ciResult = INVALID_IV_LENGTH
119e1051a39Sopenharmony_ci
120e1051a39Sopenharmony_ci#Variable key length is allowed for RC2
121e1051a39Sopenharmony_ciAvailablein = legacy
122e1051a39Sopenharmony_ciCipher = RC2-OFB
123e1051a39Sopenharmony_ciKey = 0000000000000000000000000000000000
124e1051a39Sopenharmony_ciIV = 0000000000000000
125e1051a39Sopenharmony_ciPlaintext = 000102030405060708090A0B0C0D0E0F
126e1051a39Sopenharmony_ciCiphertext = 1df8d70bb9c66ffc37869d8ed80d796b
127