MOTION  0.01
Framework for mixed-protocol multi-party computation
innerproduct.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 #include <span>
26 #include "base/party.h"
29 
32  std::span<const std::uint32_t> input_command_line, const std::string& input_file_path,
33  bool print_output);
34 
37 
38 std::vector<std::uint32_t> GetFileInput(const std::string& path);
analysis.h
GetFileInput
std::vector< std::uint32_t > GetFileInput(const std::string &path)
Definition: innerproduct.cpp:121
party.h
encrypto::motion::MpcProtocol::kBmr
@ kBmr
encrypto::motion::PartyPointer
std::unique_ptr< Party > PartyPointer
Definition: party.h:387
config.h
CreateInnerProductCircuit
encrypto::motion::SecureUnsignedInteger CreateInnerProductCircuit(encrypto::motion::SecureUnsignedInteger a, encrypto::motion::SecureUnsignedInteger b)
Definition: innerproduct.cpp:102
bmr_wire.h
EvaluateProtocol
encrypto::motion::RunTimeStatistics EvaluateProtocol(encrypto::motion::PartyPointer &party, encrypto::motion::MpcProtocol protocol, std::span< const std::uint32_t > input_command_line, const std::string &input_file_path, bool print_output)
Definition: innerproduct.cpp:35
CreateInnerProductCircuit
encrypto::motion::SecureUnsignedInteger CreateInnerProductCircuit(encrypto::motion::SecureUnsignedInteger a, encrypto::motion::SecureUnsignedInteger b)
Definition: innerproduct.cpp:102
innerproduct.h
encrypto::motion::MpcProtocol::kBooleanGmw
@ kBooleanGmw
boolean_gmw_wire.h
encrypto::motion::SecureUnsignedInteger::As
T As() const
converts the information on the wires to T in type Unsigned Integer. See the description in ShareWrap...
Definition: secure_unsigned_integer.cpp:283
secure_unsigned_integer.h
GetFileInput
std::vector< std::uint32_t > GetFileInput(const std::string &path)
Definition: innerproduct.cpp:121
encrypto::motion::RunTimeStatistics
Definition: run_time_statistics.h:32
encrypto::motion::SecureUnsignedInteger
Definition: secure_unsigned_integer.h:33
encrypto::motion::MpcProtocol
MpcProtocol
Definition: typedefs.h:140
encrypto::motion::SecureUnsignedInteger::Out
SecureUnsignedInteger Out(std::size_t output_owner=std::numeric_limits< std::int64_t >::max()) const
constructs an output gate, which reconstructs the cleartext result. The default parameter for the out...
Definition: secure_unsigned_integer.cpp:272
encrypto::motion::MpcProtocol::kArithmeticGmw
@ kArithmeticGmw
EvaluateProtocol
encrypto::motion::RunTimeStatistics EvaluateProtocol(encrypto::motion::PartyPointer &party, encrypto::motion::MpcProtocol protocol, std::span< const std::uint32_t > input_command_line, const std::string &input_file_path, bool print_output)
Definition: innerproduct.cpp:35
run_time_statistics.h
encrypto::motion::SecureUnsignedInteger::Unsimdify
std::vector< SecureUnsignedInteger > Unsimdify() const
decomposes this->share_->Get() into shares with exactly 1 SIMD value. See the description in ShareWra...
Definition: secure_unsigned_integer.cpp:261
encrypto::motion::ToInput
std::vector< BitVector< Allocator > > ToInput(IntegralType integral_value)
Definition: bit_vector.cpp:1189
arithmetic_gmw_wire.h