1; Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT
2; file at the top-level directory of this distribution.
3
4; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7; option. This file may not be copied, modified, or distributed
8; except according to those terms.
9
10; This file should be processed with cddl-gen (https://github.com/NordicSemiconductor/cddl-gen/tree/master) to create cbor encoding and decoding code
11
12
13
14; m2ci = (
15; 	C_I: int / bstr,
16; 	G_Y: tstr / bstr,
17; 	C_R: int / bstr,
18; 	CIPHERTEXT_2: bstr,
19; )
20
21m2 = ( G_Y_CIPHERTEXT_2: bstr, C_R: int / bstr )
22
23
24
25; !IMPORTANT! according to the spec G_Y is bstr.
26; However msg_2 and msg_err can only be distinguished through this element.
27; Therefore every time when msg_2 is received check the type of G_Y in order to
28; know if it is truly msg_2 or an error message
29;data_2 = ( ? C_I: int / bstr, G_Y: tstr / bstr, C_R: int / bstr, )
30
31
32