ABY Framework
1.0
Arithmetic Bool Yao Framework
|
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 () |
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
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