MOTION
0.01
Framework for mixed-protocol multi-party computation
|
#include <sb_provider.h>
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< FiberCondition > | finished_condition_ |
encrypto::motion::SbProviderFromSps::SbProviderFromSps | ( | communication::CommunicationLayer & | communication_layer, |
std::shared_ptr< SpProvider > | sp_provider, | ||
Logger & | logger, | ||
RunTimeStatistics & | run_time_statistics | ||
) |
encrypto::motion::SbProviderFromSps::~SbProviderFromSps | ( | ) |
|
finaloverridevirtual |
|
finaloverridevirtual |