CiFEr
fame.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: fame.proto */
3 
4 #ifndef PROTOBUF_C_fame_2eproto__INCLUDED
5 #define PROTOBUF_C_fame_2eproto__INCLUDED
6 
7 #include <protobuf-c/protobuf-c.h>
8 
9 PROTOBUF_C__BEGIN_DECLS
10 
11 #if PROTOBUF_C_VERSION_NUMBER < 1000000
12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13 #elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION
14 # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
15 #endif
16 
17 #include "data.pb-c.h"
18 
19 typedef struct _CfeFamePubKeySer CfeFamePubKeySer;
20 typedef struct _CfeFameSecKeySer CfeFameSecKeySer;
22 typedef struct _CfeFameCipherSer CfeFameCipherSer;
23 
24 
25 /* --- enums --- */
26 
27 
28 /* --- messages --- */
29 
31 {
32  ProtobufCMessage base;
33  OctetSer *part_g2_1;
34  OctetSer *part_g2_2;
35  OctetSer *part_gt_1;
36  OctetSer *part_gt_2;
37 };
38 #define CFE_FAME_PUB_KEY_SER__INIT \
39  { PROTOBUF_C_MESSAGE_INIT (&cfe_fame_pub_key_ser__descriptor) \
40  , NULL, NULL, NULL, NULL }
41 
42 
44 {
45  ProtobufCMessage base;
46  size_t n_part_int;
47  MpzSer **part_int;
48  size_t n_part_g1;
49  OctetSer **part_g1;
50 };
51 #define CFE_FAME_SEC_KEY_SER__INIT \
52  { PROTOBUF_C_MESSAGE_INIT (&cfe_fame_sec_key_ser__descriptor) \
53  , 0,NULL, 0,NULL }
54 
55 
57 {
58  ProtobufCMessage base;
59  size_t n_k0;
60  OctetSer **k0;
61  size_t n_k;
62  OctetSer **k;
63  size_t n_k_prime;
64  OctetSer **k_prime;
65  size_t n_row_to_attrib;
66  int64_t *row_to_attrib;
67 };
68 #define CFE_FAME_ATTRIB_KEYS_SER__INIT \
69  { PROTOBUF_C_MESSAGE_INIT (&cfe_fame_attrib_keys_ser__descriptor) \
70  , 0,NULL, 0,NULL, 0,NULL, 0,NULL }
71 
72 
74 {
75  ProtobufCMessage base;
76  size_t n_ct0;
77  OctetSer **ct0;
78  size_t n_ct;
79  OctetSer **ct;
80  OctetSer *ct_prime;
81  MspSer *msp;
82 };
83 #define CFE_FAME_CIPHER_SER__INIT \
84  { PROTOBUF_C_MESSAGE_INIT (&cfe_fame_cipher_ser__descriptor) \
85  , 0,NULL, 0,NULL, NULL, NULL }
86 
87 
88 /* CfeFamePubKeySer methods */
89 void cfe_fame_pub_key_ser__init
90  (CfeFamePubKeySer *message);
91 size_t cfe_fame_pub_key_ser__get_packed_size
92  (const CfeFamePubKeySer *message);
93 size_t cfe_fame_pub_key_ser__pack
94  (const CfeFamePubKeySer *message,
95  uint8_t *out);
96 size_t cfe_fame_pub_key_ser__pack_to_buffer
97  (const CfeFamePubKeySer *message,
98  ProtobufCBuffer *buffer);
99 CfeFamePubKeySer *
100  cfe_fame_pub_key_ser__unpack
101  (ProtobufCAllocator *allocator,
102  size_t len,
103  const uint8_t *data);
104 void cfe_fame_pub_key_ser__free_unpacked
105  (CfeFamePubKeySer *message,
106  ProtobufCAllocator *allocator);
107 /* CfeFameSecKeySer methods */
108 void cfe_fame_sec_key_ser__init
109  (CfeFameSecKeySer *message);
110 size_t cfe_fame_sec_key_ser__get_packed_size
111  (const CfeFameSecKeySer *message);
112 size_t cfe_fame_sec_key_ser__pack
113  (const CfeFameSecKeySer *message,
114  uint8_t *out);
115 size_t cfe_fame_sec_key_ser__pack_to_buffer
116  (const CfeFameSecKeySer *message,
117  ProtobufCBuffer *buffer);
119  cfe_fame_sec_key_ser__unpack
120  (ProtobufCAllocator *allocator,
121  size_t len,
122  const uint8_t *data);
123 void cfe_fame_sec_key_ser__free_unpacked
124  (CfeFameSecKeySer *message,
125  ProtobufCAllocator *allocator);
126 /* CfeFameAttribKeysSer methods */
127 void cfe_fame_attrib_keys_ser__init
128  (CfeFameAttribKeysSer *message);
129 size_t cfe_fame_attrib_keys_ser__get_packed_size
130  (const CfeFameAttribKeysSer *message);
131 size_t cfe_fame_attrib_keys_ser__pack
132  (const CfeFameAttribKeysSer *message,
133  uint8_t *out);
134 size_t cfe_fame_attrib_keys_ser__pack_to_buffer
135  (const CfeFameAttribKeysSer *message,
136  ProtobufCBuffer *buffer);
138  cfe_fame_attrib_keys_ser__unpack
139  (ProtobufCAllocator *allocator,
140  size_t len,
141  const uint8_t *data);
142 void cfe_fame_attrib_keys_ser__free_unpacked
143  (CfeFameAttribKeysSer *message,
144  ProtobufCAllocator *allocator);
145 /* CfeFameCipherSer methods */
146 void cfe_fame_cipher_ser__init
147  (CfeFameCipherSer *message);
148 size_t cfe_fame_cipher_ser__get_packed_size
149  (const CfeFameCipherSer *message);
150 size_t cfe_fame_cipher_ser__pack
151  (const CfeFameCipherSer *message,
152  uint8_t *out);
153 size_t cfe_fame_cipher_ser__pack_to_buffer
154  (const CfeFameCipherSer *message,
155  ProtobufCBuffer *buffer);
157  cfe_fame_cipher_ser__unpack
158  (ProtobufCAllocator *allocator,
159  size_t len,
160  const uint8_t *data);
161 void cfe_fame_cipher_ser__free_unpacked
162  (CfeFameCipherSer *message,
163  ProtobufCAllocator *allocator);
164 /* --- per-message closures --- */
165 
166 typedef void (*CfeFamePubKeySer_Closure)
167  (const CfeFamePubKeySer *message,
168  void *closure_data);
169 typedef void (*CfeFameSecKeySer_Closure)
170  (const CfeFameSecKeySer *message,
171  void *closure_data);
172 typedef void (*CfeFameAttribKeysSer_Closure)
173  (const CfeFameAttribKeysSer *message,
174  void *closure_data);
175 typedef void (*CfeFameCipherSer_Closure)
176  (const CfeFameCipherSer *message,
177  void *closure_data);
178 
179 /* --- services --- */
180 
181 
182 /* --- descriptors --- */
183 
184 extern const ProtobufCMessageDescriptor cfe_fame_pub_key_ser__descriptor;
185 extern const ProtobufCMessageDescriptor cfe_fame_sec_key_ser__descriptor;
186 extern const ProtobufCMessageDescriptor cfe_fame_attrib_keys_ser__descriptor;
187 extern const ProtobufCMessageDescriptor cfe_fame_cipher_ser__descriptor;
188 
189 PROTOBUF_C__END_DECLS
190 
191 
192 #endif /* PROTOBUF_C_fame_2eproto__INCLUDED */
_MspSer
Definition: data.pb-c.h:68
_CfeFamePubKeySer
Definition: fame.pb-c.h:30
_CfeFameSecKeySer
Definition: fame.pb-c.h:43
_OctetSer
Definition: data.pb-c.h:55
_CfeFameAttribKeysSer
Definition: fame.pb-c.h:56
_CfeFameCipherSer
Definition: fame.pb-c.h:73