ABY Framework  1.0
Arithmetic Bool Yao Framework
 All Classes Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Protected Attributes | List of all members
share Class Referenceabstract

#include <circuit.h>

Inheritance diagram for share:
Inheritance graph
[legend]
Collaboration diagram for share:
Collaboration graph
[legend]

Public Member Functions

 share (uint32_t sharelen, Circuit *circ)
 
 share (vector< uint32_t > gates, Circuit *circ)
 
void init (Circuit *circ, uint32_t maxbitlen=32)
 
 ~share ()
 
vector< uint32_t > & get_gates ()
 
uint32_t get_gate (uint32_t shareid)
 
void set_gate (uint32_t shareid, uint32_t gateid)
 
void resize (uint32_t sharelen)
 
void set_gates (vector< uint32_t > shares)
 
uint32_t size ()
 
uint32_t max_size ()
 
uint32_t set_max_size (uint32_t maxsize)
 
e_circuit get_circuit_type ()
 
e_sharing get_share_type ()
 
template<class T >
get_clear_value ()
 
virtual uint8_t * get_clear_value ()=0
 
virtual void get_clear_value_vec (uint32_t **vec, uint32_t *bitlen, uint32_t *nvals)=0
 

Protected Attributes

vector< uint32_t > m_ngateids
 
Circuitm_ccirc
 
uint32_t m_nmaxbitlen
 

Detailed Description

Share Class

Constructor & Destructor Documentation

share::share ( uint32_t  sharelen,
Circuit circ 
)

Constructor overloaded with shared length and circuit.

share::share ( vector< uint32_t >  gates,
Circuit circ 
)

Constructor overloaded with gates and circuit.

share::~share ( )
inline

Destructor

Member Function Documentation

void share::init ( Circuit circ,
uint32_t  maxbitlen = 32 
)

Initialise Function

Parameters
circCiruit object.
maxbitlenMaximum Bit Length.

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