|
| DGKParty (UINT DGKbits, UINT sharelen, UINT readkey) |
|
| DGKParty (UINT DGKbits, UINT sharelen, CSocket sock, UINT readkey) |
|
| ~DGKParty () |
|
void | keyExchange (CSocket sock) |
|
void | preCompBench (BYTE *bA, BYTE *bB, BYTE *bC, BYTE *bA1, BYTE *bB1, BYTE *bC1, UINT numMTs, CSocket sock) |
|
void | readKey () |
|
void | generateKey () |
|
void | loadNewKey (UINT DGKbits, UINT sharelen) |
|
DGKParty::DGKParty |
( |
UINT |
DGKbits, |
|
|
UINT |
sharelen, |
|
|
UINT |
readkey |
|
) |
| |
initializes a DGK_Party with the asymmetric security parameter and the sharelength.
- Parameters
-
mode | - 0 = generate new key; 1 = read key Public keys must be exchanged manually when using this constructor! |
DGKParty::DGKParty |
( |
UINT |
DGKbits, |
|
|
UINT |
sharelen, |
|
|
CSocket |
sock, |
|
|
UINT |
readkey |
|
) |
| |
initializes a DGK_Party with the asymmetric security parameter and the sharelength and exchanges public keys.
- Parameters
-
mode | - 0 = generate new key; 1 = read key |
deletes party and frees keys and randstate
void DGKParty::keyExchange |
( |
CSocket |
sock | ) |
|
exchanges private keys with other party via sock, pre-calculates fixed-base representation of remote pub-key
void DGKParty::loadNewKey |
( |
UINT |
DGKbits, |
|
|
UINT |
sharelen |
|
) |
| |
reads a new key from disk (to be used when parameters change)
void DGKParty::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: