MOTION  0.01
Framework for mixed-protocol multi-party computation
Functions
mult3.h File Reference
#include "base/party.h"
#include "secure_type/secure_unsigned_integer.h"
#include "statistics/run_time_statistics.h"
Include dependency graph for mult3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)
 

Function Documentation

◆ ComputeInput()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeSharedInput()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateMult3Circuit()

Constructs the multiplication of the three given inputs.

Here is the caller graph for this function:

◆ EvaluateProtocol()

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 
)
Here is the call graph for this function:

◆ GetFileInput()

std::uint32_t GetFileInput ( const std::string &  path)

Takes input as vector of integers from file in path.

Takes input as an integer from file in path.

Here is the caller graph for this function:

◆ GetFileSharedInput()

std::vector<std::uint32_t> GetFileSharedInput ( const std::string &  path)

Takes input as a vector of integers from file in path.

Here is the caller graph for this function: