Add test for non-default sized keys in variable key size ciphers
[openssl.git] / test / recipes / 30-test_evp_data / evpciph_rc5.txt
1 #
2 # Copyright 2019 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 Cipher = RC5-ECB
14 Key = 00000000000000000000000000000000
15 Plaintext = 0000000000000000
16 Ciphertext = 21a5dbee154b8f6d
17
18 Cipher = RC5-ECB
19 Key = 00000000000000000000000000000000
20 Plaintext = 000102030405060708090A0B0C0D0E0F
21 Ciphertext = d9d37019aec1161b27d7ad56b21f0f42
22
23 #Self generated. Bigger key.
24 Cipher = RC5-ECB
25 Key = 0000000000000000000000000000000000000000
26 Plaintext = 000102030405060708090A0B0C0D0E0F
27 Ciphertext = 610084f3e141cbc5455b82e2d56da565
28
29 Cipher = RC5-CBC
30 Key = 00000000000000000000000000000000
31 IV = 0000000000000000
32 Plaintext = 0000000000000000
33 Ciphertext = 21a5dbee154b8f6d
34
35 Cipher = RC5-CBC
36 Key = 0102030405060708090A0B0C0D0E0F10
37 IV = 0102030405060708
38 Plaintext = 000102030405060708090A0B0C0D0E0F
39 Ciphertext = eeebae12d768ac9e5b3d6072a9c76c65
40
41 #Self generated. Bigger key.
42 Cipher = RC5-CBC
43 Key = 0102030405060708090A0B0C0D0E0F1000000000
44 IV = 0102030405060708
45 Plaintext = 000102030405060708090A0B0C0D0E0F
46 Ciphertext = af64972111a80ec28871c51dd4bfe8de
47
48 Cipher = RC5-OFB
49 Key = 00000000000000000000000000000000
50 IV = 0000000000000000
51 Plaintext = 0000000000000000
52 Ciphertext = 21a5dbee154b8f6d
53
54 Cipher = RC5-OFB
55 Key = 0102030405060708090A0B0C0D0E0F10
56 IV = 0102030405060708
57 Plaintext = 000102030405060708090A0B0C0D0E0F
58 Ciphertext = c0ad101b40fc7ffdfc386ea5ecf458b7
59
60 #Self generated. Bigger key.
61 Cipher = RC5-OFB
62 Key = 0102030405060708090A0B0C0D0E0F1000000000
63 IV = 0102030405060708
64 Plaintext = 000102030405060708090A0B0C0D0E0F
65 Ciphertext = 66ff8fee03d45533dde93632e8f81f6f
66
67 Cipher = RC5-CFB
68 Key = 00000000000000000000000000000000
69 IV = 0000000000000000
70 Plaintext = 0000000000000000
71 Ciphertext = 21a5dbee154b8f6d
72
73 Cipher = RC5-CFB
74 Key = 0102030405060708090A0B0C0D0E0F10
75 IV = 0102030405060708
76 Plaintext = 000102030405060708090A0B0C0D0E0F
77 Ciphertext = c0ad101b40fc7ffdeb97c6173bf2987e
78
79 Cipher = RC5-CFB
80 Key = 0102030405060708090A0B0C0D0E0F10
81 IV = 0102030405060708
82 Rounds = 8
83 Plaintext = 000102030405060708090A0B0C0D0E0F
84 Ciphertext = 439945301dfa830885ac2f3cf5e61d0e
85
86 Cipher = RC5-CFB
87 Key = 0102030405060708090A0B0C0D0E0F10
88 IV = 0102030405060708
89 Rounds = 16
90 Plaintext = 000102030405060708090A0B0C0D0E0F
91 Ciphertext = 5ad80530f4a19e622d03cd4f2b165730
92
93 #Bad rounds
94 Cipher = RC5-CFB
95 Key = 0102030405060708090A0B0C0D0E0F10
96 IV = 0102030405060708
97 Rounds = 9
98 Plaintext = 000102030405060708090A0B0C0D0E0F
99 Result = INVALID_ROUNDS
100
101 #bigger key
102 Cipher = RC5-CFB
103 Key = 0102030405060708090A0B0C0D0E0F101213141516
104 IV = 0102030405060708
105 Plaintext = 000102030405060708090A0B0C0D0E0F
106 Ciphertext = b3724d2d9d1b9285e1338fd266c2277d