MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
4 #ifndef FLATBUFFERS_GENERATED_HELLOMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
5 #define FLATBUFFERS_GENERATED_HELLOMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
7 #include "flatbuffers/flatbuffers.h"
11 namespace communication {
14 struct HelloMessageBuilder;
16 struct HelloMessage FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
18 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
25 VT_MOTION_VERSION = 16
46 return GetField<float>(VT_MOTION_VERSION, 0.0f);
48 bool Verify(flatbuffers::Verifier &verifier)
const {
49 return VerifyTableStart(verifier) &&
54 verifier.VerifyVector(input_sharing_seed()) &&
56 verifier.VerifyVector(fixed_key_aes_seed()) &&
58 VerifyField<float>(verifier, VT_MOTION_VERSION) &&
65 flatbuffers::FlatBufferBuilder &
fbb_;
86 fbb_.AddElement<
float>(HelloMessage::VT_MOTION_VERSION, motion_version, 0.0f);
93 flatbuffers::Offset<HelloMessage>
Finish() {
95 auto o = flatbuffers::Offset<HelloMessage>(end);
101 flatbuffers::FlatBufferBuilder &_fbb,
102 uint16_t source_id = 0,
103 uint16_t destination_id = 0,
104 uint16_t number_of_parties = 0,
105 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> input_sharing_seed = 0,
106 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> fixed_key_aes_seed = 0,
107 bool online_after_setup =
false,
108 float motion_version = 0.0f) {
121 flatbuffers::FlatBufferBuilder &_fbb,
122 uint16_t source_id = 0,
123 uint16_t destination_id = 0,
124 uint16_t number_of_parties = 0,
125 const std::vector<uint8_t> *input_sharing_seed =
nullptr,
126 const std::vector<uint8_t> *fixed_key_aes_seed =
nullptr,
127 bool online_after_setup =
false,
128 float motion_version = 0.0f) {
129 auto input_sharing_seed__ = input_sharing_seed ? _fbb.CreateVector<uint8_t>(*input_sharing_seed) : 0;
130 auto fixed_key_aes_seed__ = fixed_key_aes_seed ? _fbb.CreateVector<uint8_t>(*fixed_key_aes_seed) : 0;
136 input_sharing_seed__,
137 fixed_key_aes_seed__,
142 inline const encrypto::motion::communication::HelloMessage *
GetHelloMessage(
const void *buf) {
143 return flatbuffers::GetRoot<encrypto::motion::communication::HelloMessage>(buf);
147 return flatbuffers::GetSizePrefixedRoot<encrypto::motion::communication::HelloMessage>(buf);
151 flatbuffers::Verifier &verifier) {
152 return verifier.VerifyBuffer<encrypto::motion::communication::HelloMessage>(
nullptr);
156 flatbuffers::Verifier &verifier) {
157 return verifier.VerifySizePrefixedBuffer<encrypto::motion::communication::HelloMessage>(
nullptr);
161 flatbuffers::FlatBufferBuilder &fbb,
162 flatbuffers::Offset<encrypto::motion::communication::HelloMessage> root) {
167 flatbuffers::FlatBufferBuilder &fbb,
168 flatbuffers::Offset<encrypto::motion::communication::HelloMessage> root) {
169 fbb.FinishSizePrefixed(root);
176 #endif // FLATBUFFERS_GENERATED_HELLOMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
uint16_t destination_id() const
Definition: hello_message_generated.h:30
HelloMessageBuilder Builder
Definition: hello_message_generated.h:17
VT_DESTINATION_ID
Definition: hello_message_generated.h:20
void add_number_of_parties(uint16_t number_of_parties)
Definition: hello_message_generated.h:73
VT_FIXED_KEY_AES_SEED
Definition: hello_message_generated.h:23
void FinishHelloMessageBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< encrypto::motion::communication::HelloMessage > root)
Definition: hello_message_generated.h:160
float motion_version() const
Definition: hello_message_generated.h:45
const encrypto::motion::communication::HelloMessage * GetHelloMessage(const void *buf)
Definition: hello_message_generated.h:142
void add_motion_version(float motion_version)
Definition: hello_message_generated.h:85
flatbuffers::Offset< HelloMessage > CreateHelloMessage(flatbuffers::FlatBufferBuilder &_fbb, uint16_t source_id=0, uint16_t destination_id=0, uint16_t number_of_parties=0, flatbuffers::Offset< flatbuffers::Vector< uint8_t >> input_sharing_seed=0, flatbuffers::Offset< flatbuffers::Vector< uint8_t >> fixed_key_aes_seed=0, bool online_after_setup=false, float motion_version=0.0f)
Definition: hello_message_generated.h:100
flatbuffers::FlatBufferBuilder & fbb_
Definition: hello_message_generated.h:65
const flatbuffers::Vector< uint8_t > * fixed_key_aes_seed() const
Definition: hello_message_generated.h:39
void add_online_after_setup(bool online_after_setup)
Definition: hello_message_generated.h:82
Definition: hello_message_generated.h:63
Definition: algorithm_description.cpp:35
HelloMessage Table
Definition: hello_message_generated.h:64
VT_INPUT_SHARING_SEED
Definition: hello_message_generated.h:22
bool VerifyHelloMessageBuffer(flatbuffers::Verifier &verifier)
Definition: hello_message_generated.h:150
bool VerifySizePrefixedHelloMessageBuffer(flatbuffers::Verifier &verifier)
Definition: hello_message_generated.h:155
bool online_after_setup() const
Definition: hello_message_generated.h:42
const encrypto::motion::communication::HelloMessage * GetSizePrefixedHelloMessage(const void *buf)
Definition: hello_message_generated.h:146
void add_source_id(uint16_t source_id)
Definition: hello_message_generated.h:67
HelloMessageBuilder & operator=(const HelloMessageBuilder &)
flatbuffers::Offset< HelloMessage > CreateHelloMessageDirect(flatbuffers::FlatBufferBuilder &_fbb, uint16_t source_id=0, uint16_t destination_id=0, uint16_t number_of_parties=0, const std::vector< uint8_t > *input_sharing_seed=nullptr, const std::vector< uint8_t > *fixed_key_aes_seed=nullptr, bool online_after_setup=false, float motion_version=0.0f)
Definition: hello_message_generated.h:120
VT_SOURCE_ID
Definition: hello_message_generated.h:19
VT_NUMBER_OF_PARTIES
Definition: hello_message_generated.h:21
HelloMessageBuilder(flatbuffers::FlatBufferBuilder &_fbb)
Definition: hello_message_generated.h:88
void add_input_sharing_seed(flatbuffers::Offset< flatbuffers::Vector< uint8_t >> input_sharing_seed)
Definition: hello_message_generated.h:76
flatbuffers::Offset< HelloMessage > Finish()
Definition: hello_message_generated.h:93
void add_destination_id(uint16_t destination_id)
Definition: hello_message_generated.h:70
flatbuffers::uoffset_t start_
Definition: hello_message_generated.h:66
void FinishSizePrefixedHelloMessageBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< encrypto::motion::communication::HelloMessage > root)
Definition: hello_message_generated.h:166
const flatbuffers::Vector< uint8_t > * input_sharing_seed() const
Definition: hello_message_generated.h:36
bool Verify(flatbuffers::Verifier &verifier) const
Definition: hello_message_generated.h:48
uint16_t source_id() const
Definition: hello_message_generated.h:27
uint16_t number_of_parties() const
Definition: hello_message_generated.h:33
VT_ONLINE_AFTER_SETUP
Definition: hello_message_generated.h:24
void add_fixed_key_aes_seed(flatbuffers::Offset< flatbuffers::Vector< uint8_t >> fixed_key_aes_seed)
Definition: hello_message_generated.h:79