MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
36 class CommunicationLayer;
65 std::pair<ReceiverMessage, SenderMessage>
ExportBaseOts(std::size_t party_id);
71 std::size_t number_of_parties_;
73 std::vector<BaseOtData> data_;
74 std::shared_ptr<Logger> logger_;
Definition: base_ot_data.h:77
BaseOtData & GetBaseOtsData(std::size_t party_id)
Definition: base_ot_provider.h:66
BaseOtData & GetBaseOtsData()
Definition: base_ot_provider.cpp:50
static BitVector SecureRandom(const std::size_t size) noexcept
Returns a random BitVector.
Definition: bit_vector.cpp:893
Definition: base_ot_provider.h:58
const encrypto::motion::communication::BaseROtMessage * GetBaseROtMessage(const void *buf)
Definition: base_ot_generated.h:80
std::array< std::array< std::byte, 16 >, kKappa > BaseOtMessages
Definition: base_ot_provider.h:46
const encrypto::motion::communication::Message * GetMessage(const void *buf)
Definition: message_generated.h:146
Definition: base_ot_provider.h:48
constexpr std::size_t kKappa
Definition: constants.h:65
void ComputeBaseOts()
Definition: base_ot_provider.cpp:97
const BaseOtData & GetBaseOtsData(std::size_t party_id) const
Definition: base_ot_provider.h:67
void RegisterMessageHandler(MessageHandlerFunction, const std::vector< MessageType > &message_types)
Definition: communication_layer.cpp:393
choices
Definition: geninput.py:153
@ kHL17R
Definition: base_ot_data.h:39
Definition: algorithm_description.cpp:35
void SendMessage(std::size_t party_id, std::vector< std::uint8_t > &&message)
Definition: communication_layer.cpp:331
Definition: message_handler.h:38
Definition: communication_layer.h:58
BaseOtMessages messages_c
Definition: base_ot_provider.h:54
BitVector c
Definition: base_ot_provider.h:55
@ kHL17S
Definition: base_ot_data.h:39
void ReceivedMessage(std::size_t, std::vector< std::uint8_t > &&message) override
Definition: base_ot_provider.cpp:57
Definition: base_ot_provider.h:53
BaseOtProvider(communication::CommunicationLayer &, std::shared_ptr< Logger >)
Definition: base_ot_provider.cpp:75
BaseOtMessages messages_0
Definition: base_ot_provider.h:49
void MessageReceived(const std::uint8_t *message, const BaseOtDataType type, const std::size_t ot_id=0)
Definition: base_ot_data.cpp:50
Definition: base_ot_provider.cpp:41
@ kBaseROtMessageReceiver
constexpr bool kDebug
Definition: config.h:36
void ImportBaseOts(std::size_t party_id, const ReceiverMessage &messages)
Definition: base_ot_provider.cpp:166
void DeregisterMessageHandler(const std::vector< MessageType > &message_types)
Definition: communication_layer.cpp:414
~BaseOtProvider()
Definition: base_ot_provider.cpp:91
std::pair< ReceiverMessage, SenderMessage > ExportBaseOts(std::size_t party_id)
Definition: base_ot_provider.cpp:198
BaseOtMessageHandler(std::shared_ptr< Logger > logger, BaseOtData &base_ots_data)
Definition: base_ot_provider.cpp:44
BaseOtMessages messages_1
Definition: base_ot_provider.h:50