1 /*
2  * Generated using zcbor version 0.3.99
3  * https://github.com/NordicSemiconductor/zcbor
4  * Generated with a --default-max-qty of 3
5  */
6 
7 #ifndef EDHOC_DECODE_PLAINTEXT_TYPES_H__
8 #define EDHOC_DECODE_PLAINTEXT_TYPES_H__
9 
10 #include <stdint.h>
11 #include <stdbool.h>
12 #include <stddef.h>
13 #include <string.h>
14 #include "zcbor_decode.h"
15 
16 /** Which value for --default-max-qty this file was created with.
17  *
18  *  The define is used in the other generated file to do a build-time
19  *  compatibility check.
20  *
21  *  See `zcbor --help` for more information about --default-max-qty
22  */
23 #define DEFAULT_MAX_QTY 3
24 
25 struct map_kid {
26 	int32_t _map_kid;
27 };
28 
29 struct map_x5bag {
30 	struct zcbor_string _map_x5bag;
31 };
32 
33 struct map_x5chain {
34 	struct zcbor_string _map_x5chain;
35 };
36 
37 struct map_x5t_ {
38 	union {
39 		int32_t _map_x5t_alg_int;
40 		struct zcbor_string _map_x5t_alg_tstr;
41 	};
42 	enum {
43 		_map_x5t_alg_int,
44 		_map_x5t_alg_tstr,
45 	} _map_x5t_alg_choice;
46 	struct zcbor_string _map_x5t_hash;
47 };
48 
49 struct map_x5u {
50 	struct zcbor_string _map_x5u;
51 };
52 
53 struct map_c5b {
54 	struct zcbor_string _map_c5b;
55 };
56 
57 struct map_c5c {
58 	struct zcbor_string _map_c5c;
59 };
60 
61 struct map_c5t_ {
62 	union {
63 		int32_t _map_c5t_alg_int;
64 		struct zcbor_string _map_c5t_alg_tstr;
65 	};
66 	enum {
67 		_map_c5t_alg_int,
68 		_map_c5t_alg_tstr,
69 	} _map_c5t_alg_choice;
70 	struct zcbor_string _map_c5t_hash;
71 };
72 
73 struct map_c5u {
74 	struct zcbor_string _map_c5u;
75 };
76 
77 struct map {
78 	struct map_kid _map_kid;
79 	uint_fast32_t _map_kid_present;
80 	struct map_x5bag _map_x5bag;
81 	uint_fast32_t _map_x5bag_present;
82 	struct map_x5chain _map_x5chain;
83 	uint_fast32_t _map_x5chain_present;
84 	struct map_x5t_ _map_x5t;
85 	uint_fast32_t _map_x5t_present;
86 	struct map_x5u _map_x5u;
87 	uint_fast32_t _map_x5u_present;
88 	struct map_c5b _map_c5b;
89 	uint_fast32_t _map_c5b_present;
90 	struct map_c5c _map_c5c;
91 	uint_fast32_t _map_c5c_present;
92 	struct map_c5t_ _map_c5t;
93 	uint_fast32_t _map_c5t_present;
94 	struct map_c5u _map_c5u;
95 	uint_fast32_t _map_c5u_present;
96 };
97 
98 struct plaintext {
99 	union {
100 		struct map _plaintext_ID_CRED_x__map;
101 		struct zcbor_string _plaintext_ID_CRED_x_bstr;
102 		int32_t _plaintext_ID_CRED_x_int;
103 	};
104 	enum {
105 		_plaintext_ID_CRED_x__map,
106 		_plaintext_ID_CRED_x_bstr,
107 		_plaintext_ID_CRED_x_int,
108 	} _plaintext_ID_CRED_x_choice;
109 	struct zcbor_string _plaintext_SGN_or_MAC_x;
110 	struct zcbor_string _plaintext_AD_x;
111 	uint_fast32_t _plaintext_AD_x_present;
112 };
113 
114 
115 #endif /* EDHOC_DECODE_PLAINTEXT_TYPES_H__ */
116