MOTION
0.01
Framework for mixed-protocol multi-party computation
|
#include "innerproduct.h"
#include <fstream>
#include <span>
#include "protocols/arithmetic_gmw/arithmetic_gmw_wire.h"
#include "protocols/bmr/bmr_wire.h"
#include "protocols/boolean_gmw/boolean_gmw_wire.h"
#include "secure_type/secure_unsigned_integer.h"
#include "statistics/analysis.h"
#include "statistics/run_time_statistics.h"
#include "utility/config.h"
Functions | |
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) |
encrypto::motion::SecureUnsignedInteger | CreateInnerProductCircuit (encrypto::motion::SecureUnsignedInteger a, encrypto::motion::SecureUnsignedInteger b) |
std::vector< std::uint32_t > | GetFileInput (const std::string &path) |
encrypto::motion::SecureUnsignedInteger CreateInnerProductCircuit | ( | encrypto::motion::SecureUnsignedInteger | a, |
encrypto::motion::SecureUnsignedInteger | b | ||
) |
Constructs the inner product of the two given inputs.
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 | ||
) |
std::vector<std::uint32_t> GetFileInput | ( | const std::string & | path | ) |
Takes input as vector of integers from file in path.