summaryrefslogtreecommitdiff
path: root/keymaster_attributes.pb.c
blob: aeae7efc06a30295ddb4e37b641ff5e7f0a6d1be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.3.9.8 at Thu Nov 10 13:28:07 2022. */

#include "keymaster_attributes.pb.h"

/* @@protoc_insertion_point(includes) */
#if PB_PROTO_HEADER_VERSION != 30
#error Regenerate this file with the current version of nanopb generator.
#endif



const pb_field_t KeymasterAttributes_fields[3] = {
    PB_FIELD(  1, BYTES   , OPTIONAL, STATIC  , FIRST, KeymasterAttributes, uuid, uuid, 0),
    PB_FIELD(  2, BYTES   , OPTIONAL, STATIC  , OTHER, KeymasterAttributes, product_id, uuid, 0),
    PB_LAST_FIELD
};

const pb_field_t AttestationIds_fields[10] = {PB_FIELD(1,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       FIRST,
                                                       AttestationIds,
                                                       brand,
                                                       brand,
                                                       0),
                                              PB_FIELD(2,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       device,
                                                       brand,
                                                       0),
                                              PB_FIELD(3,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       product,
                                                       device,
                                                       0),
                                              PB_FIELD(4,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       serial,
                                                       product,
                                                       0),
                                              PB_FIELD(5,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       imei,
                                                       serial,
                                                       0),
                                              PB_FIELD(6,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       meid,
                                                       imei,
                                                       0),
                                              PB_FIELD(7,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       manufacturer,
                                                       meid,
                                                       0),
                                              PB_FIELD(8,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       model,
                                                       manufacturer,
                                                       0),
                                              PB_FIELD(9,
                                                       BYTES,
                                                       OPTIONAL,
                                                       STATIC,
                                                       OTHER,
                                                       AttestationIds,
                                                       second_imei,
                                                       model,
                                                       0),
                                              PB_LAST_FIELD};

const pb_field_t AttestationKey_fields[3] = {
    PB_FIELD(  1, BYTES   , OPTIONAL, STATIC  , FIRST, AttestationKey, key, key, 0),
    PB_FIELD(  2, MESSAGE , REPEATED, STATIC  , OTHER, AttestationKey, certs, key, &AttestationCert_fields),
    PB_LAST_FIELD
};

const pb_field_t AttestationCert_fields[2] = {
    PB_FIELD(  1, BYTES   , REQUIRED, STATIC  , FIRST, AttestationCert, content, content, 0),
    PB_LAST_FIELD
};


/* Check that field information fits in pb_field_t */
#if !defined(PB_FIELD_32BIT)
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
 * compile-time option. You can do that in pb.h or on compiler command line.
 *
 * The reason you need to do this is that some of your messages contain tag
 * numbers or field sizes that are larger than what can fit in 8 or 16 bit
 * field descriptors.
 */
PB_STATIC_ASSERT(
        (pb_membersize(AttestationKey, key) < 65536 &&
         pb_membersize(AttestationKey, certs[0]) < 65536 &&
         pb_membersize(AttestationCert, content) < 65536),
        YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_KeymasterAttributes_AttestationIds_AttestationKey_AttestationCert)
#endif

#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
#error Field descriptor for AttestationCert.content is too large. Define PB_FIELD_16BIT to fix this.
#endif


/* @@protoc_insertion_point(eof) */