1 /* 2 * Generated using zcbor version 0.8.0 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 <zcbor_common.h> 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /** Which value for --default-max-qty this file was created with. 20 * 21 * The define is used in the other generated file to do a build-time 22 * compatibility check. 23 * 24 * See `zcbor --help` for more information about --default-max-qty 25 */ 26 #define DEFAULT_MAX_QTY 3 27 28 struct map_kid_r { 29 union { 30 int32_t map_kid_int; 31 struct zcbor_string map_kid_bstr; 32 }; 33 enum { 34 map_kid_int_c, 35 map_kid_bstr_c, 36 } map_kid_choice; 37 }; 38 39 struct map_x5bag { 40 struct zcbor_string map_x5bag; 41 }; 42 43 struct map_x5chain { 44 struct zcbor_string map_x5chain; 45 }; 46 47 struct map_x5t_r { 48 union { 49 int32_t map_x5t_alg_int; 50 struct zcbor_string map_x5t_alg_tstr; 51 }; 52 enum { 53 map_x5t_alg_int_c, 54 map_x5t_alg_tstr_c, 55 } map_x5t_alg_choice; 56 struct zcbor_string map_x5t_hash; 57 }; 58 59 struct map_x5u { 60 struct zcbor_string map_x5u; 61 }; 62 63 struct map_c5b { 64 struct zcbor_string map_c5b; 65 }; 66 67 struct map_c5c { 68 struct zcbor_string map_c5c; 69 }; 70 71 struct map_c5t_r { 72 union { 73 int32_t map_c5t_alg_int; 74 struct zcbor_string map_c5t_alg_tstr; 75 }; 76 enum { 77 map_c5t_alg_int_c, 78 map_c5t_alg_tstr_c, 79 } map_c5t_alg_choice; 80 struct zcbor_string map_c5t_hash; 81 }; 82 83 struct map_c5u { 84 struct zcbor_string map_c5u; 85 }; 86 87 struct map { 88 struct map_kid_r map_kid; 89 bool map_kid_present; 90 struct map_x5bag map_x5bag; 91 bool map_x5bag_present; 92 struct map_x5chain map_x5chain; 93 bool map_x5chain_present; 94 struct map_x5t_r map_x5t; 95 bool map_x5t_present; 96 struct map_x5u map_x5u; 97 bool map_x5u_present; 98 struct map_c5b map_c5b; 99 bool map_c5b_present; 100 struct map_c5c map_c5c; 101 bool map_c5c_present; 102 struct map_c5t_r map_c5t; 103 bool map_c5t_present; 104 struct map_c5u map_c5u; 105 bool map_c5u_present; 106 }; 107 108 struct plaintext { 109 union { 110 struct map plaintext_ID_CRED_x_map_m; 111 struct zcbor_string plaintext_ID_CRED_x_bstr; 112 int32_t plaintext_ID_CRED_x_int; 113 }; 114 enum { 115 plaintext_ID_CRED_x_map_m_c, 116 plaintext_ID_CRED_x_bstr_c, 117 plaintext_ID_CRED_x_int_c, 118 } plaintext_ID_CRED_x_choice; 119 struct zcbor_string plaintext_SGN_or_MAC_x; 120 struct zcbor_string plaintext_AD_x; 121 bool plaintext_AD_x_present; 122 }; 123 124 #ifdef __cplusplus 125 } 126 #endif 127 128 #endif /* EDHOC_DECODE_PLAINTEXT_TYPES_H__ */ 129