ABY Framework  1.0
Arithmetic Bool Yao Framework
 All Classes Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | List of all members
BoolSharing Class Reference

#include <boolsharing.h>

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

Public Member Functions

 BoolSharing (e_role role, uint32_t sharebitlen, ABYCircuit *circuit, crypto *crypt)
 
 ~BoolSharing ()
 
void PrepareSetupPhase (ABYSetup *setup)
 
void PerformSetupPhase (ABYSetup *setup)
 
void FinishSetupPhase (ABYSetup *setup)
 
void EvaluateLocalOperations (uint32_t level)
 
void EvaluateInteractiveOperations (uint32_t level)
 
void FinishCircuitLayer ()
 
void PrepareOnlinePhase ()
 
void InstantiateGate (GATE *gate)
 
void UsedGate (uint32_t gateid)
 
void GetDataToSend (vector< BYTE * > &sendbuf, vector< uint32_t > &bytesize)
 
void GetBuffersToReceive (vector< BYTE * > &rcvbuf, vector< uint32_t > &rcvbytes)
 
void EvaluateSIMDGate (uint32_t gateid)
 
CircuitGetCircuitBuildRoutine ()
 
uint32_t AssignInput (CBitVector &input)
 
uint32_t GetOutput (CBitVector &out)
 
uint32_t GetMaxCommunicationRounds ()
 
uint32_t GetNumNonLinearOperations ()
 
void Reset ()
 
vector< uint32_t > GetNumOTs ()
 
const char * sharing_type ()
 
void PrintPerformanceStatistics ()
 
- Public Member Functions inherited from Sharing
 Sharing (e_role role, uint32_t sharebitlen, ABYCircuit *circuit, crypto *crypt)
 Initialises the members of the class. More...
 
 ~Sharing ()
 

Additional Inherited Members

- Protected Member Functions inherited from Sharing
void EvaluateCallbackGate (uint32_t gateid)
 
- Protected Attributes inherited from Sharing
uint32_t m_nShareBitLen
 
GATEm_pGates
 
ABYCircuitm_pCircuit
 
e_role m_eRole
 
uint32_t m_nSecParamBytes
 
cryptom_cCrypto
 

Detailed Description

BOOL SHARING - <DETAILED explanation="" please>="">

Constructor & Destructor Documentation

BoolSharing::BoolSharing ( e_role  role,
uint32_t  sharebitlen,
ABYCircuit circuit,
crypto crypt 
)
inline

Constructor of the class.

BoolSharing::~BoolSharing ( )
inline

Destructor of the class.

Member Function Documentation

uint32_t BoolSharing::AssignInput ( CBitVector input)
virtual

Method for assigning the input

Parameters
inputInput

Implements Sharing.

void BoolSharing::EvaluateInteractiveOperations ( uint32_t  level)
virtual

Method for evaluating the interactive operations.

Parameters
level_______________________

Implements Sharing.

void BoolSharing::EvaluateLocalOperations ( uint32_t  level)
virtual

Method for evaluating the local operations.

Parameters
level_______________________

Implements Sharing.

void BoolSharing::FinishCircuitLayer ( )
virtual

Method for finishing the circuit layer <Better description="" please>="">

Implements Sharing.

void BoolSharing::FinishSetupPhase ( ABYSetup setup)
virtual

Method for finishing the sharing setup.

Parameters
setupObject for setting up the share.

Implements Sharing.

void BoolSharing::GetBuffersToReceive ( vector< BYTE * > &  rcvbuf,
vector< uint32_t > &  rcvbytes 
)
virtual

Method for receiving the data.

Parameters
rsvbufreceiver buffer
rcvsizedata size

Implements Sharing.

Circuit* BoolSharing::GetCircuitBuildRoutine ( )
inlinevirtual

Method for _________________________________

Implements Sharing.

void BoolSharing::GetDataToSend ( vector< BYTE * > &  sendbuf,
vector< uint32_t > &  bytesize 
)
virtual

Method for sending the data.

Parameters
sendbufsender buffer
bytesizedata size

Implements Sharing.

uint32_t BoolSharing::GetMaxCommunicationRounds ( )
inlinevirtual

Method for finding the maximum communication rounds.

Implements Sharing.

uint32_t BoolSharing::GetNumNonLinearOperations ( )
inlinevirtual

Method for finding the number of non-linear operations.

Implements Sharing.

uint32_t BoolSharing::GetOutput ( CBitVector out)
virtual

Method for getting the output

Parameters
outputOutput

Implements Sharing.

void BoolSharing::InstantiateGate ( GATE gate)
inlinevirtual

Method for Instantiating a gate

Parameters
gateInput gate

Implements Sharing.

void BoolSharing::PerformSetupPhase ( ABYSetup setup)
virtual

Method for performing the sharing setup.

Parameters
setupObject for setting up the share.

Implements Sharing.

void BoolSharing::PrepareOnlinePhase ( )
virtual

Method for preparing the online phase <Better description="" please>="">

Implements Sharing.

void BoolSharing::PrepareSetupPhase ( ABYSetup setup)
virtual

Method for preparing the sharing setup.

Parameters
setupObject for setting up the share.

Implements Sharing.

void BoolSharing::PrintPerformanceStatistics ( )
virtual

Method for printing the performance statistics.

Implements Sharing.

void BoolSharing::Reset ( )
virtual

Reset method

Implements Sharing.

const char* BoolSharing::sharing_type ( )
inlinevirtual

Method for knowing the sharing type used.

Implements Sharing.

void BoolSharing::UsedGate ( uint32_t  gateid)
inlinevirtual

Method for finding the used gate with the gateid.

Parameters
gateidId of the used gate.

Implements Sharing.


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