25 #include "../circuit/abycircuit.h"
26 #include "../circuit/circuit.h"
27 #include "../util/cbitvector.h"
28 #include "../aby/abysetup.h"
29 #include "../util/constants.h"
30 #include "../util/crypto/crypto.h"
38 #define MAXSHAREBUFSIZE 1000000
70 virtual void Reset() = 0;
114 virtual void GetDataToSend(vector<BYTE*>& sendbuf, vector<uint32_t>& bytesize) = 0;
130 virtual void UsedGate(uint32_t gateid) = 0;
uint32_t m_nSecParamBytes
Definition: sharing.h:175
virtual void FinishSetupPhase(ABYSetup *setup)=0
virtual void InstantiateGate(GATE *gate)=0
virtual Circuit * GetCircuitBuildRoutine()=0
ABYCircuit * m_pCircuit
Definition: sharing.h:173
virtual void GetBuffersToReceive(vector< BYTE * > &rcvbuf, vector< uint32_t > &rcvbytes)=0
virtual void PrepareOnlinePhase()=0
virtual void EvaluateLocalOperations(uint32_t level)=0
Definition: abycircuit.h:122
virtual void PrepareSetupPhase(ABYSetup *setup)=0
virtual uint32_t AssignInput(CBitVector &input)=0
virtual void UsedGate(uint32_t gateid)=0
virtual const char * sharing_type()=0
virtual uint32_t GetOutput(CBitVector &out)=0
e_role
Defines the role of the party or the source / target for certain operations (e.g., input/output)
Definition: constants.h:139
virtual uint32_t GetNumNonLinearOperations()=0
virtual void PrintPerformanceStatistics()=0
GATE * m_pGates
Definition: sharing.h:172
e_role m_eRole
Definition: sharing.h:174
virtual void EvaluateInteractiveOperations(uint32_t level)=0
~Sharing()
Definition: sharing.h:65
virtual void GetDataToSend(vector< BYTE * > &sendbuf, vector< uint32_t > &bytesize)=0
crypto * m_cCrypto
Definition: sharing.h:176
Definition: abycircuit.h:144
virtual void PerformSetupPhase(ABYSetup *setup)=0
virtual uint32_t GetMaxCommunicationRounds()=0
Definition: abysetup.h:77
uint32_t m_nShareBitLen
Definition: sharing.h:171
void EvaluateCallbackGate(uint32_t gateid)
Definition: sharing.cpp:20
Sharing(e_role role, uint32_t sharebitlen, ABYCircuit *circuit, crypto *crypt)
Initialises the members of the class.
Definition: sharing.h:53
virtual void FinishCircuitLayer()=0
Definition: cbitvector.h:123