• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 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
9Title = Camellia CTS tests from RFC6803
10
11# The encryption test vectors in RFC6803 specify the base_key,
12# not the derived encryption key.
13# The encryption key was manually derived using:
14#    ke = KBKDF(mac = CMAC, mode = FEEDBACK, base_key,
15#               salt = 0000000 || usage || AA,
16#               seed = 00000000000000000000000000000000)
17# NOTE: that the usage was not specified in the test vectors,
18# but is listed here in https://www.rfc-editor.org/errata_search.php?rfc=6803
19#
20# e.g: openssl kdf -cipher CAMELLIA-128-CBC
21#                  -keylen 16
22#                  -kdfopt hexkey:1DC46A8D763F4F93742BCBA3387576C3
23#                  -kdfopt hexsalt:00000000AA
24#                  -kdfopt mode:FEEDBACK
25#                  -kdfopt hexseed:00000000000000000000000000000000
26#                  -mac CMAC
27#                  KBKDF
28#
29# The ciphertext result also contains a MAC result so this was also manually stripped from the test data.
30# The random confounder is also prepended to the plaintext.
31#
32
33# 128-bit Camellia key: 1DC46A8D763F4F93742BCBA3387576C3
34# Key usage: 0
35# Random confounder: B69822A19A6B09C0EBC8557D1F1B6C0A
36# Plaintext: (empty)
37Cipher = CAMELLIA-128-CBC-CTS
38CTSMode = CS3
39Key = E99B82B36C4AE8EA19E95DFA9EDE882C
40IV = 00000000000000000000000000000000
41Plaintext = B69822A19A6B09C0EBC8557D1F1B6C0A
42Ciphertext = C466F1871069921EDB7C6FDE244A52DB
43
44# 128-bit Camellia key: 5027BC231D0F3A9D23333F1CA6FDBE7C
45# Key usage: 1
46# Random confounder: 6F2FC3C2A166FD8898967A83DE9596D9
47# Plaintext: 1 (31)
48Cipher = CAMELLIA-128-CBC-CTS
49CTSMode = CS3
50Key = A7EDCD5397EA6D12B0AFF4CB8DAA57AD
51IV = 00000000000000000000000000000000
52Plaintext = 6F2FC3C2A166FD8898967A83DE9596D931
53Ciphertext = 842D21FD950311C0DD464A3F4BE8D6DA88
54
55# 128-bit Camellia key: A1BB61E805F9BA6DDE8FDBDDC05CDEA0
56# Key usage: 2
57# Random confounder: A5B4A71E077AEEF93C8763C18FDB1F10
58# Plaintext: 9 bytesss (392062797465737373)
59Cipher = CAMELLIA-128-CBC-CTS
60CTSMode = CS3
61Key = DDE42ECA7CD9863FC3CE89CBC94362D7
62IV = 00000000000000000000000000000000
63Plaintext = A5B4A71E077AEEF93C8763C18FDB1F10392062797465737373
64Ciphertext = 619FF072E36286FF0A28DEB3A352EC0D0EDF5C5160D663C901
65
66# 128-bit Camellia key: 2CA27A5FAF5532244506434E1CEF6676
67# Key usage: 3
68# Random confounder: 19FEE40D810C524B5B22F01874C693DA
69# Plaintext: 13 bytes byte (31332062797465732062797465)
70Cipher = CAMELLIA-128-CBC-CTS
71CTSMode = CS3
72Key = C3113A258590B9AEBF721B1AF6B0CBF8
73IV = 00000000000000000000000000000000
74Plaintext = 19FEE40D810C524B5B22F01874C693DA31332062797465732062797465
75Ciphertext = B8ECA3167AE6315512E59F98A7C500205E5F63FF3BB389AF1C41A21D64
76
77# 128-bit Camellia key: 7824F8C16F83FF354C6BF7515B973F43
78# Key usage: 4
79# Random confounder: CA7A7AB4BE192DABD603506DB19C39E2
80# Plaintext: 30 bytes bytes bytes bytes byt (333020627974657320627974657320627974657320627974657320627974)
81Cipher = CAMELLIA-128-CBC-CTS
82CTSMode = CS3
83Key = 8B07EED30149916AA20DB3F5CED8AFAD
84IV = 00000000000000000000000000000000
85Plaintext = CA7A7AB4BE192DABD603506DB19C39E2333020627974657320627974657320627974657320627974657320627974
86Ciphertext = A26A3905A4FFD5816B7B1E27380D08090C8EC1F304496E1ABDCD2BDCD1DFFC660989E117A713DDBB57A4146C1587
87
88# 256-bit Camellia key: B61C86CC4E5D2757545AD423399FB7031ECAB913CBB900BD7A3C6DD8BF92015B
89# Key usage: 0
90# Random confounder: 3CBBD2B45917941067F96599BB98926C
91# Plaintext: (empty)
92Cipher = CAMELLIA-256-CBC-CTS
93CTSMode = CS3
94Key = 6CCB3F25D8AE57F4E8F6CA474BDDEFF116CE131B3F71012E756D6B1E3F70A7F1
95IV = 00000000000000000000000000000000
96Plaintext = 3CBBD2B45917941067F96599BB98926C
97Ciphertext = 03886D03310B47A6D8F06D7B94D1DD83
98
99# 256-bit Camellia key: 1B97FE0A190E2021EB30753E1B6E1E77B0754B1D684610355864104963463833
100# Key usage: 1
101# Random confounder: DEF487FCEBE6DE6346D4DA4521BBA2D2
102# Plaintext: 1 (31)
103Cipher = CAMELLIA-256-CBC-CTS
104CTSMode = CS3
105Key = E93173AA01EB3C246231DAFC7802EE32AF24851D8C7387D18CB9B2C5B7F570B8
106IV = 00000000000000000000000000000000
107Plaintext = DEF487FCEBE6DE6346D4DA4521BBA2D231
108Ciphertext = 2C9C1570133C99BF6A34BC1B0212002FD1
109
110# 256-bit Camellia key: 32164C5B434D1D1538E4CFD9BE8040FE8C4AC7ACC4B93D3314D2133668147A05
111# Key usage: 2
112# Random confounder: AD4FF904D34E555384B14100FC465F88
113# Plaintext: 9 bytesss (392062797465737373)
114Cipher = CAMELLIA-256-CBC-CTS
115CTSMode = CS3
116Key = CDA2D39A9B243FFEB56E8D5F4BD528741ECB520C62123FB040B8418B15C7D70C
117IV = 00000000000000000000000000000000
118Plaintext = AD4FF904D34E555384B14100FC465F88392062797465737373
119Ciphertext = 9C6DE75F812DE7ED0D28B2963557A115640998275B0AF51527
120
121# 256-bit Camellia key: B038B132CD8E06612267FAB7170066D88AECCBA0B744BFC60DC89BCA182D0715
122# Key usage: 3
123# Random confounder: CF9BCA6DF1144E0C0AF9B8F34C90D514
124# Plaintext: 13 bytes byte (31332062797465732062797465)
125Cipher = CAMELLIA-256-CBC-CTS
126CTSMode = CS3
127Key = CD8A10E279DADDB6901EC30BDF9873250F6EFC6A77367D74DC3EE7F74BC7774E
128IV = 00000000000000000000000000000000
129Plaintext = CF9BCA6DF1144E0C0AF9B8F34C90D51431332062797465732062797465
130Ciphertext = EEEC85A9813CDC536772AB9B42DEFC5706F726E975DDE05A87EB5406EA
131
132# 256-bit Camellia key: CCFCD349BF4C6677E86E4B02B8EAB924A546AC731CF9BF6989B996E7D6BFBBA7
133# Key usage: 4
134# Random confounder: 644DEF38DA35007275878D216855E228
135# Plaintext: 30 bytes bytes bytes bytes byt (333020627974657320627974657320627974657320627974657320627974)
136Cipher = CAMELLIA-256-CBC-CTS
137CTSMode = CS3
138Key = 1D5147F34BB001A04A68A71346E7654E0223A60D90BC2B79B4D87956D47CD42A
139IV = 00000000000000000000000000000000
140Plaintext = 644DEF38DA35007275878D216855E228333020627974657320627974657320627974657320627974657320627974
141Ciphertext = 0E44680985855F2D1F1812529CA83BFD8E349DE6FD9ADA0BAAA048D68E265FEBF34AD1255A344999AD37146887A6
142