1 /* Automatically generated nanopb header */ 2 /* Generated by nanopb-0.3.9.8 at Thu Nov 10 13:28:07 2022. */ 3 4 #ifndef PB_KEYMASTER_ATTRIBUTES_PB_H_INCLUDED 5 #define PB_KEYMASTER_ATTRIBUTES_PB_H_INCLUDED 6 #include <pb.h> 7 8 /* @@protoc_insertion_point(includes) */ 9 #if PB_PROTO_HEADER_VERSION != 30 10 #error Regenerate this file with the current version of nanopb generator. 11 #endif 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /* Struct definitions */ 18 typedef PB_BYTES_ARRAY_T(2048) AttestationCert_content_t; 19 typedef struct _AttestationCert { 20 AttestationCert_content_t content; 21 /* @@protoc_insertion_point(struct:AttestationCert) */ 22 } AttestationCert; 23 24 typedef PB_BYTES_ARRAY_T(64) AttestationIds_brand_t; 25 typedef PB_BYTES_ARRAY_T(64) AttestationIds_device_t; 26 typedef PB_BYTES_ARRAY_T(64) AttestationIds_product_t; 27 typedef PB_BYTES_ARRAY_T(64) AttestationIds_serial_t; 28 typedef PB_BYTES_ARRAY_T(64) AttestationIds_imei_t; 29 typedef PB_BYTES_ARRAY_T(64) AttestationIds_meid_t; 30 typedef PB_BYTES_ARRAY_T(64) AttestationIds_manufacturer_t; 31 typedef PB_BYTES_ARRAY_T(64) AttestationIds_model_t; 32 typedef PB_BYTES_ARRAY_T(64) AttestationIds_second_imei_t; 33 typedef struct _AttestationIds { 34 bool has_brand; 35 AttestationIds_brand_t brand; 36 bool has_device; 37 AttestationIds_device_t device; 38 bool has_product; 39 AttestationIds_product_t product; 40 bool has_serial; 41 AttestationIds_serial_t serial; 42 bool has_imei; 43 AttestationIds_imei_t imei; 44 bool has_meid; 45 AttestationIds_meid_t meid; 46 bool has_manufacturer; 47 AttestationIds_manufacturer_t manufacturer; 48 bool has_model; 49 AttestationIds_model_t model; 50 bool has_second_imei; 51 AttestationIds_second_imei_t second_imei; 52 /* @@protoc_insertion_point(struct:AttestationIds) */ 53 } AttestationIds; 54 55 typedef PB_BYTES_ARRAY_T(32) KeymasterAttributes_uuid_t; 56 typedef PB_BYTES_ARRAY_T(16) KeymasterAttributes_product_id_t; 57 typedef struct _KeymasterAttributes { 58 bool has_uuid; 59 KeymasterAttributes_uuid_t uuid; 60 bool has_product_id; 61 KeymasterAttributes_product_id_t product_id; 62 /* @@protoc_insertion_point(struct:KeymasterAttributes) */ 63 } KeymasterAttributes; 64 65 typedef PB_BYTES_ARRAY_T(2048) AttestationKey_key_t; 66 typedef struct _AttestationKey { 67 bool has_key; 68 AttestationKey_key_t key; 69 pb_size_t certs_count; 70 AttestationCert certs[3]; 71 /* @@protoc_insertion_point(struct:AttestationKey) */ 72 } AttestationKey; 73 74 /* Default values for struct fields */ 75 76 /* Initializer values for message structs */ 77 #define KeymasterAttributes_init_default {false, {0, {0}}, false, {0, {0}}} 78 #define AttestationIds_init_default \ 79 { \ 80 false, {0, {0}}, false, {0, {0}}, false, {0, {0}}, false, {0, {0}}, \ 81 false, {0, {0}}, false, {0, {0}}, false, {0, {0}}, false, \ 82 {0, {0}}, false, { \ 83 0, { 0 } \ 84 } \ 85 } 86 #define AttestationKey_init_default {false, {0, {0}}, 0, {AttestationCert_init_default, AttestationCert_init_default, AttestationCert_init_default}} 87 #define AttestationCert_init_default {{0, {0}}} 88 #define KeymasterAttributes_init_zero {false, {0, {0}}, false, {0, {0}}} 89 #define AttestationIds_init_zero \ 90 { \ 91 false, {0, {0}}, false, {0, {0}}, false, {0, {0}}, false, {0, {0}}, \ 92 false, {0, {0}}, false, {0, {0}}, false, {0, {0}}, false, \ 93 {0, {0}}, false, { \ 94 0, { 0 } \ 95 } \ 96 } 97 #define AttestationKey_init_zero {false, {0, {0}}, 0, {AttestationCert_init_zero, AttestationCert_init_zero, AttestationCert_init_zero}} 98 #define AttestationCert_init_zero {{0, {0}}} 99 100 /* Field tags (for use in manual encoding/decoding) */ 101 #define AttestationCert_content_tag 1 102 #define AttestationIds_brand_tag 1 103 #define AttestationIds_device_tag 2 104 #define AttestationIds_product_tag 3 105 #define AttestationIds_serial_tag 4 106 #define AttestationIds_imei_tag 5 107 #define AttestationIds_meid_tag 6 108 #define AttestationIds_manufacturer_tag 7 109 #define AttestationIds_model_tag 8 110 #define AttestationIds_second_imei_tag 9 111 #define KeymasterAttributes_uuid_tag 1 112 #define KeymasterAttributes_product_id_tag 2 113 #define AttestationKey_key_tag 1 114 #define AttestationKey_certs_tag 2 115 116 /* Struct field encoding specification for nanopb */ 117 extern const pb_field_t KeymasterAttributes_fields[3]; 118 extern const pb_field_t AttestationIds_fields[10]; 119 extern const pb_field_t AttestationKey_fields[3]; 120 extern const pb_field_t AttestationCert_fields[2]; 121 122 /* Maximum encoded size of messages (where known) */ 123 #define KeymasterAttributes_size 52 124 #define AttestationIds_size 594 125 #define AttestationKey_size 8213 126 #define AttestationCert_size 2051 127 128 /* Message IDs (where set with "msgid" option) */ 129 #ifdef PB_MSGID 130 131 #define KEYMASTER_ATTRIBUTES_MESSAGES \ 132 133 134 #endif 135 136 #ifdef __cplusplus 137 } /* extern "C" */ 138 #endif 139 /* @@protoc_insertion_point(eof) */ 140 141 #endif 142