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