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