| 
    MOTION
    0.01
    
   Framework for mixed-protocol multi-party computation 
   | 
 
#include "mult3.h"#include <fstream>#include "secure_type/secure_unsigned_integer.h"#include "statistics/analysis.h"#include "statistics/run_time_statistics.h"#include "utility/bit_vector.h"#include "utility/config.h"
Functions | |
| encrypto::motion::RunTimeStatistics | EvaluateProtocol (encrypto::motion::PartyPointer &party, encrypto::motion::MpcProtocol protocol, const std::uint32_t input_command_line, const std::string &input_file_path, const std::string &input_file_shared_path, bool print_output) | 
| encrypto::motion::SecureUnsignedInteger | ComputeInput (encrypto::motion::PartyPointer &party, encrypto::motion::MpcProtocol protocol, const std::uint32_t input_command_line, const std::string &input_file_path) | 
| encrypto::motion::SecureUnsignedInteger | ComputeSharedInput (encrypto::motion::PartyPointer &party, encrypto::motion::MpcProtocol protocol, const std::string &input_file_shared_path) | 
| encrypto::motion::SecureUnsignedInteger | CreateMult3Circuit (encrypto::motion::SecureUnsignedInteger a, encrypto::motion::SecureUnsignedInteger b, encrypto::motion::SecureUnsignedInteger c) | 
| std::uint32_t | GetFileInput (const std::string &path) | 
| std::vector< std::uint32_t > | GetFileSharedInput (const std::string &path) | 
| encrypto::motion::SecureUnsignedInteger ComputeInput | ( | encrypto::motion::PartyPointer & | party, | 
| encrypto::motion::MpcProtocol | protocol, | ||
| const std::uint32_t | input_command_line, | ||
| const std::string & | input_file_path | ||
| ) | 
Computes Mult3 using input from file or command line. File's path is given in input_file_path.


| encrypto::motion::SecureUnsignedInteger ComputeSharedInput | ( | encrypto::motion::PartyPointer & | party, | 
| encrypto::motion::MpcProtocol | protocol, | ||
| const std::string & | input_file_shared_path | ||
| ) | 
Computes Mult3 using shared input from file. Path is given in input_file_shared_path.


| encrypto::motion::SecureUnsignedInteger CreateMult3Circuit | ( | encrypto::motion::SecureUnsignedInteger | a, | 
| encrypto::motion::SecureUnsignedInteger | b, | ||
| encrypto::motion::SecureUnsignedInteger | c | ||
| ) | 
Constructs the multiplication of the three given inputs.

| encrypto::motion::RunTimeStatistics EvaluateProtocol | ( | encrypto::motion::PartyPointer & | party, | 
| encrypto::motion::MpcProtocol | protocol, | ||
| const std::uint32_t | input_command_line, | ||
| const std::string & | input_file_path, | ||
| const std::string & | input_file_shared_path, | ||
| bool | print_output | ||
| ) | 

| std::uint32_t GetFileInput | ( | const std::string & | path | ) | 
Takes input as an integer from file in path.

| std::vector<std::uint32_t> GetFileSharedInput | ( | const std::string & | path | ) | 
Takes input as a vector of integers from file in path.

 1.8.17