MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
25 #include <openssl/rand.h>
32 unsigned char buf[
sizeof(T)];
33 RAND_bytes(buf,
sizeof(T));
34 return *
reinterpret_cast<T*
>(buf);
39 std::vector<T> v(size);
40 std::generate(v.begin(), v.end(), Rand<T>);
std::vector< std::unique_ptr< Party > > MakeLocallyConnectedParties(const std::size_t number_of_parties, std::uint16_t, const bool)
constructs number_of_parties motion::Party's locally connected via TCP.
Definition: party.cpp:227
Definition: share_wrapper.h:44
TEST_P(CommunicationLayerTest, Tcp)
Definition: test_communication_layer.cpp:95
Definition: dummy_transport.h:30
static BitVector SecureRandom(const std::size_t size) noexcept
Returns a random BitVector.
Definition: bit_vector.cpp:893
constexpr auto kDetailedLoggingEnabled
Definition: test_constants.h:30
static std::pair< std::unique_ptr< DummyTransport >, std::unique_ptr< DummyTransport > > MakeTransportPair()
Definition: dummy_transport.cpp:37
Definition: algorithm_description.cpp:35
T Rand()
Definition: test_helpers.h:31
std::shared_ptr< Share > SharePointer
Definition: conversion_gate.h:49
ShareWrapper Convert() const
Definition: share_wrapper.cpp:322
INSTANTIATE_TEST_SUITE_P(CommunicationLayerTcpTests, CommunicationLayerTest, testing::Bool(), [](auto &info) { return info.param ? "ipv6" :"ipv4";})
std::vector< T > RandomVector(std::size_t size)
Definition: test_helpers.h:38
TEST(DummyTransport, Dummy)
Definition: test_dummy_transport.cpp:29
constexpr auto kPortOffset
Definition: test_constants.h:31