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

#include <ot_flavors.h>

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

Public Member Functions

void WaitSetup () const
 
void SetChoices (BitVector<> &&choices)
 
void SetChoices (const BitVector<> &choices)
 
const BitVectorGetChoices () const
 
bool AreChoicesSet () const
 
void SendCorrections ()
 
- 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
 

Protected Member Functions

 BasicOtReceiver (std::size_t ot_id, std::size_t number_of_ots, std::size_t bitlength, OtProtocol p, const std::function< void(flatbuffers::FlatBufferBuilder &&)> &Send, OtExtensionReceiverData &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

OtExtensionReceiverDatadata_
 
BitVector choices_
 
bool corrections_sent_ = false
 
- 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

◆ BasicOtReceiver()

encrypto::motion::BasicOtReceiver::BasicOtReceiver ( std::size_t  ot_id,
std::size_t  number_of_ots,
std::size_t  bitlength,
OtProtocol  p,
const std::function< void(flatbuffers::FlatBufferBuilder &&)> &  Send,
OtExtensionReceiverData data 
)
protected

Member Function Documentation

◆ AreChoicesSet()

bool encrypto::motion::BasicOtReceiver::AreChoicesSet ( ) const
inline
Here is the call graph for this function:

◆ GetChoices()

const BitVector& encrypto::motion::BasicOtReceiver::GetChoices ( ) const
inline

◆ SendCorrections()

void encrypto::motion::BasicOtReceiver::SendCorrections ( )
Here is the call graph for this function:

◆ SetChoices() [1/2]

void encrypto::motion::BasicOtReceiver::SetChoices ( BitVector<> &&  choices)
inline
Here is the caller graph for this function:

◆ SetChoices() [2/2]

void encrypto::motion::BasicOtReceiver::SetChoices ( const BitVector<> &  choices)
inline

◆ WaitSetup()

void encrypto::motion::BasicOtReceiver::WaitSetup ( ) const

Member Data Documentation

◆ choices_

BitVector encrypto::motion::BasicOtReceiver::choices_
protected

◆ corrections_sent_

bool encrypto::motion::BasicOtReceiver::corrections_sent_ = false
protected

◆ data_

OtExtensionReceiverData& encrypto::motion::BasicOtReceiver::data_
protected

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