MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | List of all members
encrypto::motion::proto::ConstantArithmeticShare< T, typename > Class Template Reference

#include <constant_share.h>

Inheritance diagram for encrypto::motion::proto::ConstantArithmeticShare< T, typename >:
Inheritance graph
[legend]
Collaboration diagram for encrypto::motion::proto::ConstantArithmeticShare< T, typename >:
Collaboration graph
[legend]

Public Member Functions

 ConstantArithmeticShare (const WirePointer &wire)
 
 ConstantArithmeticShare (const ConstantArithmeticWirePointer< T > &wire)
 
 ConstantArithmeticShare (const std::vector< ConstantArithmeticWirePointer< T >> &wires)
 
 ConstantArithmeticShare (const std::vector< WirePointer > &wires)
 
 ConstantArithmeticShare (const std::vector< T > &input, Backend &backend)
 
 ConstantArithmeticShare (const T input, Backend &backend)
 
 ~ConstantArithmeticShare () override=default
 
std::size_t GetNumberOfSimdValues () const noexcept final
 
MpcProtocol GetProtocol () const noexcept final
 
CircuitType GetCircuitType () const noexcept final
 
const ConstantArithmeticWirePointer< T > GetConstantArithmeticWire () const
 
const std::vector< WirePointer > & GetWires () const noexcept final
 
std::vector< WirePointer > & GetMutableWires () noexcept final
 
const bool & Finished ()
 
const std::vector< T > & GetValue () const
 
std::size_t GetBitLength () const noexcept final
 
std::vector< std::shared_ptr< motion::Share > > Split () const noexcept final
 
std::shared_ptr< motion::ShareGetWire (std::size_t i) const override
 
 ConstantArithmeticShare (ConstantArithmeticShare &)=delete
 
- Public Member Functions inherited from encrypto::motion::Share
virtual ~Share ()=default
 
BackendGetBackend () const
 
std::shared_ptr< RegisterGetRegister ()
 
 Share (Share &)=delete
 
 Share (const Share &)=delete
 
bool IsConstant () const noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from encrypto::motion::Share
static std::shared_ptr< ShareConcatenate (const std::vector< std::shared_ptr< Share >> &v)
 
- Protected Member Functions inherited from encrypto::motion::Share
 Share (Backend &backend)
 
- Protected Attributes inherited from encrypto::motion::Share
Backendbackend_
 
std::vector< WirePointerwires_
 

Constructor & Destructor Documentation

◆ ConstantArithmeticShare() [1/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( const WirePointer wire)
inline

◆ ConstantArithmeticShare() [2/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( const ConstantArithmeticWirePointer< T > &  wire)
inline

◆ ConstantArithmeticShare() [3/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( const std::vector< ConstantArithmeticWirePointer< T >> &  wires)
inline

◆ ConstantArithmeticShare() [4/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( const std::vector< WirePointer > &  wires)
inline

◆ ConstantArithmeticShare() [5/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( const std::vector< T > &  input,
Backend backend 
)
inline

◆ ConstantArithmeticShare() [6/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( const T  input,
Backend backend 
)
inline

◆ ~ConstantArithmeticShare()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::~ConstantArithmeticShare ( )
overridedefault

◆ ConstantArithmeticShare() [7/7]

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
encrypto::motion::proto::ConstantArithmeticShare< T, typename >::ConstantArithmeticShare ( ConstantArithmeticShare< T, typename > &  )
delete

Member Function Documentation

◆ Finished()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
const bool& encrypto::motion::proto::ConstantArithmeticShare< T, typename >::Finished ( )
inline

◆ GetBitLength()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::size_t encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetBitLength ( ) const
inlinefinalvirtualnoexcept

◆ GetCircuitType()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
CircuitType encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetCircuitType ( ) const
inlinefinalvirtualnoexcept

◆ GetConstantArithmeticWire()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
const ConstantArithmeticWirePointer<T> encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetConstantArithmeticWire ( ) const
inline

◆ GetMutableWires()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::vector<WirePointer>& encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetMutableWires ( )
inlinefinalvirtualnoexcept

◆ GetNumberOfSimdValues()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::size_t encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetNumberOfSimdValues ( ) const
inlinefinalvirtualnoexcept

◆ GetProtocol()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
MpcProtocol encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetProtocol ( ) const
inlinefinalvirtualnoexcept

◆ GetValue()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
const std::vector<T>& encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetValue ( ) const
inline

◆ GetWire()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::shared_ptr<motion::Share> encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetWire ( std::size_t  i) const
inlineoverridevirtual

◆ GetWires()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
const std::vector<WirePointer>& encrypto::motion::proto::ConstantArithmeticShare< T, typename >::GetWires ( ) const
inlinefinalvirtualnoexcept

◆ Split()

template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
std::vector<std::shared_ptr<motion::Share> > encrypto::motion::proto::ConstantArithmeticShare< T, typename >::Split ( ) const
inlinefinalvirtualnoexcept

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