19 #ifndef __DGKPARTY_H__
20 #define __DGKPARTY_H__
24 #include "../util/typedefs.h"
25 #include "../util/socket.h"
26 #include "../util/dgk.h"
27 #include "../util/powmod.h"
33 DGKParty(UINT DGKbits, UINT sharelen, UINT readkey);
39 void preCompBench(BYTE * bA, BYTE * bB, BYTE * bC, BYTE * bA1, BYTE * bB1, BYTE * bC1, UINT numMTs,
CSocket sock);
45 void loadNewKey(UINT DGKbits, UINT sharelen);
48 USHORT m_nNumMTThreads;
49 USHORT m_nShareLength;
56 gmp_randstate_t m_randstate;
58 void benchPreCompPacking1(
CSocket sock, BYTE * buf, UINT packlen, UINT numshares, mpz_t * a, mpz_t * b, mpz_t * c, mpz_t * a1, mpz_t * b1, mpz_t * c1, mpz_t r, mpz_t x,
61 void sendmpz_t(mpz_t t,
CSocket sock, BYTE * buf);
62 void receivempz_t(mpz_t t,
CSocket sock, BYTE * buf);
64 void sendmpz_t(mpz_t t,
CSocket sock);
65 void receivempz_t(mpz_t t,
CSocket sock);
67 void printBuf(BYTE* b, UINT l);
71 #endif //__DGK_PARTY_H__
Definition: dgkparty.h:31