MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | List of all members
encrypto::motion::XcOtSender Class Reference

#include <ot_flavors.h>

Inheritance diagram for encrypto::motion::XcOtSender:
Inheritance graph
[legend]
Collaboration diagram for encrypto::motion::XcOtSender:
Collaboration graph
[legend]

Public Member Functions

 XcOtSender (std::size_t ot_id, std::size_t number_of_ots, std::size_t bitlength, OtExtensionSenderData &data, const std::function< void(flatbuffers::FlatBufferBuilder &&)> &send_function)
 
void SetCorrelations (std::vector< BitVector<>> &&correlations)
 
void SetCorrelations (std::span< const BitVector<>> correlations)
 
std::span< const BitVector<> > GetCorrelations () const
 
void ComputeOutputs ()
 
std::span< const BitVector<> > GetOutputs () const
 
void SendMessages () const
 
- Public Member Functions inherited from encrypto::motion::BasicOtSender
void WaitSetup () const
 
- Public Member Functions inherited from encrypto::motion::OtVector
 OtVector ()=delete
 
std::size_t GetOtId () const noexcept
 
std::size_t GetNumOts () const noexcept
 
std::size_t GetBitlen () const noexcept
 
OtProtocol GetProtocol () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from encrypto::motion::BasicOtSender
 BasicOtSender (std::size_t ot_id, std::size_t number_of_ots, std::size_t bitlength, OtProtocol p, const std::function< void(flatbuffers::FlatBufferBuilder &&)> &send_function, OtExtensionSenderData &data)
 
- Protected Member Functions inherited from encrypto::motion::OtVector
 OtVector (const std::size_t ot_id, const std::size_t number_of_ots, const std::size_t bitlength, const OtProtocol p, const std::function< void(flatbuffers::FlatBufferBuilder &&)> &send_function)
 
- Protected Attributes inherited from encrypto::motion::BasicOtSender
OtExtensionSenderDatadata_
 
- Protected Attributes inherited from encrypto::motion::OtVector
const std::size_t ot_id_
 
const std::size_t number_of_ots_
 
const std::size_t bitlen_
 
const OtProtocol p_
 
std::function< void(flatbuffers::FlatBufferBuilder &&)> send_function_
 

Constructor & Destructor Documentation

◆ XcOtSender()

encrypto::motion::XcOtSender::XcOtSender ( std::size_t  ot_id,
std::size_t  number_of_ots,
std::size_t  bitlength,
OtExtensionSenderData data,
const std::function< void(flatbuffers::FlatBufferBuilder &&)> &  send_function 
)

Member Function Documentation

◆ ComputeOutputs()

void encrypto::motion::XcOtSender::ComputeOutputs ( )
Here is the call graph for this function:

◆ GetCorrelations()

std::span<const BitVector<> > encrypto::motion::XcOtSender::GetCorrelations ( ) const
inline

◆ GetOutputs()

std::span<const BitVector<> > encrypto::motion::XcOtSender::GetOutputs ( ) const
inline

◆ SendMessages()

void encrypto::motion::XcOtSender::SendMessages ( ) const
Here is the call graph for this function:

◆ SetCorrelations() [1/2]

void encrypto::motion::XcOtSender::SetCorrelations ( std::span< const BitVector<>>  correlations)
inline

◆ SetCorrelations() [2/2]

void encrypto::motion::XcOtSender::SetCorrelations ( std::vector< BitVector<>> &&  correlations)
inline

The documentation for this class was generated from the following files: