MOTION  0.01
Framework for mixed-protocol multi-party computation
default_rng.h
Go to the documentation of this file.
1 // MIT License
2 //
3 // Copyright (c) 2021 Arianne Roselina Prananto
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to deal
7 // in the Software without restriction, including without limitation the rights
8 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 // copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be included in all
13 // copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 // SOFTWARE.
22 
23 #pragma once
24 
25 #ifdef __MINGW32__
26 #include "openssl_rng.h"
27 namespace encrypto::motion {
28  using DefaultRng = OpenSslRng;
29 } // namespace encrypto::motion
30 #else
31 #include "aes128_ctr_rng.h"
32 namespace encrypto::motion {
34 } // namespace encrypto::motion
35 #endif
encrypto::motion::AccumulatedCommunicationStatistics::Add
void Add(const communication::TransportStatistics &statistics)
Definition: analysis.cpp:125
analysis.h
party.h
encrypto::motion::AccumulatedRunTimeStatistics
Definition: analysis.h:43
kPartyArgumentRegex
const std::regex kPartyArgumentRegex("([01]),([^,]+),(\\d{1,5})")
encrypto::motion::PartyPointer
std::unique_ptr< Party > PartyPointer
Definition: party.h:387
CheckPartyArgumentSyntax
bool CheckPartyArgumentSyntax(const std::string &party_argument)
Definition: crosstabs_main.cpp:88
CreateParty
encrypto::motion::PartyPointer CreateParty(const program_options::variables_map &user_options)
Definition: crosstabs_main.cpp:183
aes128_ctr_rng.h
encrypto::motion::communication::TcpSetupHelper
Definition: tcp_transport.h:69
communication_layer.h
ParseProgramOptions
std::pair< program_options::variables_map, std::vector< bool > > ParseProgramOptions(int ac, char *av[])
Definition: crosstabs_main.cpp:104
encrypto::motion::communication::TcpPartiesConfiguration
std::vector< TcpConnectionConfiguration > TcpPartiesConfiguration
Definition: tcp_transport.h:62
encrypto::motion::Aes128CtrRng
Definition: aes128_ctr_rng.h:32
encrypto::motion
Definition: algorithm_description.cpp:35
crosstabs.h
geninput.help
help
Definition: geninput.py:150
encrypto::motion::PrintStatistics
std::string PrintStatistics(const std::string &experiment_name, const AccumulatedRunTimeStatistics &execution_statistics, const AccumulatedCommunicationStatistics &communication_statistics)
Definition: analysis.cpp:176
EvaluateProtocol
encrypto::motion::RunTimeStatistics EvaluateProtocol(encrypto::motion::PartyPointer &party, std::size_t number_of_simd, encrypto::motion::MpcProtocol protocol, bool check)
Definition: aes128.cpp:56
typedefs.h
openssl_rng.h
ParsePartyArgument
std::tuple< std::size_t, std::string, std::uint16_t > ParsePartyArgument(const std::string &party_argument)
Definition: crosstabs_main.cpp:93
tcp_transport.h
encrypto::motion::DefaultRng
Aes128CtrRng DefaultRng
Definition: default_rng.h:33
main
int main(int ac, char *av[])
Definition: crosstabs_main.cpp:49
encrypto::motion::AccumulatedCommunicationStatistics
Definition: analysis.h:65
encrypto::motion::communication::TcpSetupHelper::SetupConnections
std::vector< std::unique_ptr< Transport > > SetupConnections()
Definition: tcp_transport.cpp:203