MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
44 ~Wire()
final =
default;
76 std::scoped_lock lock(setup_ready_cond_->GetMutex());
79 setup_ready_cond_->NotifyAll();
90 void InitializationHelperBmr();
105 std::atomic<bool> setup_ready_{
false};
106 std::unique_ptr<FiberCondition> setup_ready_cond_;
void resize(std::size_t new_size)
Resize the Block128Vector to contain new_size elements. New elements are left uninitialized.
Definition: block.h:233
MpcProtocol GetProtocol() const final
Definition: bmr_wire.h:46
void GenerateRandomPrivateKeys()
Definition: bmr_wire.cpp:63
std::size_t n_simd_
Number of values that are logically processed in parallel.
Definition: wire.h:86
Backend & backend_
Definition: wire.h:83
std::size_t GetBitLength() const final
Definition: bmr_wire.h:52
static BitVector SecureRandom(const std::size_t size) noexcept
Returns a random BitVector.
Definition: bit_vector.cpp:893
const auto & GetPublicKeys() const
Definition: bmr_wire.h:66
std::shared_ptr< Wire > WirePointer
Definition: bmr_wire.h:109
void SetToRandom()
Set all Block128 in this vector to random values.
Definition: block.cpp:47
BitVector & GetMutablePublicValues()
Definition: bmr_wire.h:56
Vector of 128 bit / 16 B blocks.
Definition: block.h:168
auto & GetMutableSecretKeys()
Definition: bmr_wire.h:64
void DynamicClear() final
Definition: bmr_wire.h:87
BitVector & GetMutablePermutationBits()
Definition: bmr_wire.h:60
auto & GetMutablePublicKeys()
Definition: bmr_wire.h:68
std::size_t GetNumberOfParties() const
Definition: communication_layer.h:65
void SetSetupIsReady()
Definition: bmr_wire.h:74
void GenerateRandomPermutationBits()
Definition: bmr_wire.cpp:65
Definition: bmr_wire.h:34
const BitVector & GetPublicValues() const
Definition: bmr_wire.h:54
bool IsConstant() const noexcept final
Definition: bmr_wire.h:84
const BitVector & GetPermutationBits() const
Definition: bmr_wire.h:58
MpcProtocol
Definition: typedefs.h:140
communication::CommunicationLayer & GetCommunicationLayer()
Definition: backend.h:289
const auto & GetSecretKeys() const
Definition: bmr_wire.h:62
const auto & GetSetupReadyCondition() const
Definition: bmr_wire.h:82