1 /* 2 * Generated using zcbor version 0.8.99 3 * https://github.com/NordicSemiconductor/zcbor 4 * Generated with a --default-max-qty of 3 5 */ 6 7 #ifndef EDHOC_DECODE_PLAINTEXT3_TYPES_H__ 8 #define EDHOC_DECODE_PLAINTEXT3_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 map3_kid_r { 29 union { 30 int32_t map3_kid_int; 31 struct zcbor_string map3_kid_bstr; 32 }; 33 enum { 34 map3_kid_int_c, 35 map3_kid_bstr_c, 36 } map3_kid_choice; 37 }; 38 39 struct map3_x5bag { 40 struct zcbor_string map3_x5bag; 41 }; 42 43 struct map3_x5chain { 44 struct zcbor_string map3_x5chain; 45 }; 46 47 struct map3_x5t_r { 48 union { 49 int32_t map3_x5t_alg_int; 50 struct zcbor_string map3_x5t_alg_tstr; 51 }; 52 enum { 53 map3_x5t_alg_int_c, 54 map3_x5t_alg_tstr_c, 55 } map3_x5t_alg_choice; 56 struct zcbor_string map3_x5t_hash; 57 }; 58 59 struct map3_x5u { 60 struct zcbor_string map3_x5u; 61 }; 62 63 struct map3_c5b { 64 struct zcbor_string map3_c5b; 65 }; 66 67 struct map3_c5c { 68 struct zcbor_string map3_c5c; 69 }; 70 71 struct map3_c5t_r { 72 union { 73 int32_t map3_c5t_alg_int; 74 struct zcbor_string map3_c5t_alg_tstr; 75 }; 76 enum { 77 map3_c5t_alg_int_c, 78 map3_c5t_alg_tstr_c, 79 } map3_c5t_alg_choice; 80 struct zcbor_string map3_c5t_hash; 81 }; 82 83 struct map3_c5u { 84 struct zcbor_string map3_c5u; 85 }; 86 87 struct map3 { 88 struct map3_kid_r map3_kid; 89 bool map3_kid_present; 90 struct map3_x5bag map3_x5bag; 91 bool map3_x5bag_present; 92 struct map3_x5chain map3_x5chain; 93 bool map3_x5chain_present; 94 struct map3_x5t_r map3_x5t; 95 bool map3_x5t_present; 96 struct map3_x5u map3_x5u; 97 bool map3_x5u_present; 98 struct map3_c5b map3_c5b; 99 bool map3_c5b_present; 100 struct map3_c5c map3_c5c; 101 bool map3_c5c_present; 102 struct map3_c5t_r map3_c5t; 103 bool map3_c5t_present; 104 struct map3_c5u map3_c5u; 105 bool map3_c5u_present; 106 }; 107 108 struct ptxt3 { 109 union { 110 struct map3 ptxt3_ID_CRED_I_map3_m; 111 struct zcbor_string ptxt3_ID_CRED_I_bstr; 112 int32_t ptxt3_ID_CRED_I_int; 113 }; 114 enum { 115 ptxt3_ID_CRED_I_map3_m_c, 116 ptxt3_ID_CRED_I_bstr_c, 117 ptxt3_ID_CRED_I_int_c, 118 } ptxt3_ID_CRED_I_choice; 119 struct zcbor_string ptxt3_SGN_or_MAC_3; 120 struct zcbor_string ptxt3_EAD_3; 121 bool ptxt3_EAD_3_present; 122 }; 123 124 #ifdef __cplusplus 125 } 126 #endif 127 128 #endif /* EDHOC_DECODE_PLAINTEXT3_TYPES_H__ */ 129