1 /*
2    Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT
3    file at the top-level directory of this distribution.
4 
5    Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6    http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7    <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8    option. This file may not be copied, modified, or distributed
9    except according to those terms.
10 */
11 
12 #ifndef EDHOC_MESSAGES_H
13 #define EDHOC_MESSAGES_H
14 
15 #include "common/byte_array.h"
16 
17 struct msg_1 {
18 	uint8_t method_corr;
19 	struct byte_array suites_i;
20 	struct byte_array g_x;
21 	struct byte_array c_i;
22 	struct byte_array ead_1;
23 };
24 
25 struct msg_2 {
26 	struct byte_array c_i;
27 	struct byte_array g_y;
28 	struct byte_array c_r;
29 	struct byte_array ciphertext;
30 };
31 
32 struct error_msg {
33 	struct byte_array c_x;
34 	struct byte_array diag_msg;
35 	struct byte_array suites_r;
36 };
37 
38 #endif
39