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 union { 27 int32_t _map_kid_int; 28 struct zcbor_string _map_kid_bstr; 29 }; 30 enum { 31 _map_kid_int, 32 _map_kid_bstr, 33 } _map_kid_choice; 34 }; 35 36 struct map_x5bag { 37 struct zcbor_string _map_x5bag; 38 }; 39 40 struct map_x5chain { 41 struct zcbor_string _map_x5chain; 42 }; 43 44 struct map_x5t_ { 45 union { 46 int32_t _map_x5t_alg_int; 47 struct zcbor_string _map_x5t_alg_tstr; 48 }; 49 enum { 50 _map_x5t_alg_int, 51 _map_x5t_alg_tstr, 52 } _map_x5t_alg_choice; 53 struct zcbor_string _map_x5t_hash; 54 }; 55 56 struct map_x5u { 57 struct zcbor_string _map_x5u; 58 }; 59 60 struct map_c5b { 61 struct zcbor_string _map_c5b; 62 }; 63 64 struct map_c5c { 65 struct zcbor_string _map_c5c; 66 }; 67 68 struct map_c5t_ { 69 union { 70 int32_t _map_c5t_alg_int; 71 struct zcbor_string _map_c5t_alg_tstr; 72 }; 73 enum { 74 _map_c5t_alg_int, 75 _map_c5t_alg_tstr, 76 } _map_c5t_alg_choice; 77 struct zcbor_string _map_c5t_hash; 78 }; 79 80 struct map_c5u { 81 struct zcbor_string _map_c5u; 82 }; 83 84 struct map { 85 struct map_kid_ _map_kid; 86 uint_fast32_t _map_kid_present; 87 struct map_x5bag _map_x5bag; 88 uint_fast32_t _map_x5bag_present; 89 struct map_x5chain _map_x5chain; 90 uint_fast32_t _map_x5chain_present; 91 struct map_x5t_ _map_x5t; 92 uint_fast32_t _map_x5t_present; 93 struct map_x5u _map_x5u; 94 uint_fast32_t _map_x5u_present; 95 struct map_c5b _map_c5b; 96 uint_fast32_t _map_c5b_present; 97 struct map_c5c _map_c5c; 98 uint_fast32_t _map_c5c_present; 99 struct map_c5t_ _map_c5t; 100 uint_fast32_t _map_c5t_present; 101 struct map_c5u _map_c5u; 102 uint_fast32_t _map_c5u_present; 103 }; 104 105 struct plaintext { 106 union { 107 struct map _plaintext_ID_CRED_x__map; 108 struct zcbor_string _plaintext_ID_CRED_x_bstr; 109 int32_t _plaintext_ID_CRED_x_int; 110 }; 111 enum { 112 _plaintext_ID_CRED_x__map, 113 _plaintext_ID_CRED_x_bstr, 114 _plaintext_ID_CRED_x_int, 115 } _plaintext_ID_CRED_x_choice; 116 struct zcbor_string _plaintext_SGN_or_MAC_x; 117 struct zcbor_string _plaintext_AD_x; 118 uint_fast32_t _plaintext_AD_x_present; 119 }; 120 121 122 #endif /* EDHOC_DECODE_PLAINTEXT_TYPES_H__ */ 123