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

Public Member Functions

 DJNParty (UINT DJNbits, UINT sharelen)
 
 DJNParty (UINT DJNbits, UINT sharelen, CSocket sock)
 
 ~DJNParty ()
 
void keyExchange (CSocket sock)
 
void preCompBench (BYTE *bA, BYTE *bB, BYTE *bC, BYTE *bA1, BYTE *bB1, BYTE *bC1, UINT numMTs, CSocket sock)
 
void setSharelLength (UINT sharelen)
 
void keyGen ()
 

Constructor & Destructor Documentation

DJNParty::DJNParty ( UINT  DJNbits,
UINT  sharelen,
CSocket  sock 
)

initializes a DJN_Party with the asymmetric security parameter and the sharelength. Generates DJN key. Key Exchange must be done manually after calling this constructor!

DJNParty::~DJNParty ( )

deletes party and frees keys and randstate

Member Function Documentation

void DJNParty::keyExchange ( CSocket  sock)

exchanges private keys with other party via sock, pre-calculates fixed-base representation of remote pub-key

void DJNParty::preCompBench ( BYTE *  bA,
BYTE *  bB,
BYTE *  bC,
BYTE *  bA1,
BYTE *  bB1,
BYTE *  bC1,
UINT  numMTs,
CSocket  sock 
)

inputs pre-allocates byte buffers for aMT calculation. numMTs must be the total number of MTs and divisible by 2


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