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

#include <sb_provider.h>

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

Public Member Functions

 SbProviderFromSps (communication::CommunicationLayer &communication_layer, std::shared_ptr< SpProvider > sp_provider, Logger &logger, RunTimeStatistics &run_time_statistics)
 
 ~SbProviderFromSps ()
 
void PreSetup () final override
 
void Setup () final override
 
- Public Member Functions inherited from encrypto::motion::SbProvider
bool NeedSbs () const noexcept
 
template<typename T >
std::size_t GetNumberOfSbs () const noexcept
 
template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::size_t RequestSbs (const std::size_t number_of_sbs) noexcept
 
template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::vector< T > GetSbs (const std::size_t offset, const std::size_t n=1)
 
template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
const std::vector< T > & GetSbsAll () noexcept
 
void WaitFinished ()
 

Additional Inherited Members

- Protected Member Functions inherited from encrypto::motion::SbProvider
 SbProvider (const std::size_t my_id)
 
 SbProvider ()=delete
 
- Protected Attributes inherited from encrypto::motion::SbProvider
std::size_t number_of_sbs_8_ {0}
 
std::size_t number_of_sbs_16_ {0}
 
std::size_t number_of_sbs_32_ {0}
 
std::size_t number_of_sbs_64_ {0}
 
std::vector< std::uint8_t > sbs_8_
 
std::vector< std::uint16_t > sbs_16_
 
std::vector< std::uint32_t > sbs_32_
 
std::vector< std::uint64_t > sbs_64_
 
const std::size_t my_id_
 
bool finished_ = false
 
std::shared_ptr< FiberConditionfinished_condition_
 

Constructor & Destructor Documentation

◆ SbProviderFromSps()

encrypto::motion::SbProviderFromSps::SbProviderFromSps ( communication::CommunicationLayer communication_layer,
std::shared_ptr< SpProvider sp_provider,
Logger logger,
RunTimeStatistics run_time_statistics 
)
Here is the call graph for this function:

◆ ~SbProviderFromSps()

encrypto::motion::SbProviderFromSps::~SbProviderFromSps ( )
Here is the call graph for this function:

Member Function Documentation

◆ PreSetup()

void encrypto::motion::SbProviderFromSps::PreSetup ( )
finaloverridevirtual

Implements encrypto::motion::SbProvider.

Here is the call graph for this function:

◆ Setup()

void encrypto::motion::SbProviderFromSps::Setup ( )
finaloverridevirtual

Implements encrypto::motion::SbProvider.

Here is the call graph for this function:

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