19 #ifndef __DJNPARTY_H__
20 #define __DJNPARTY_H__
24 #include "../util/typedefs.h"
25 #include "../util/socket.h"
26 #include "../util/djn.h"
27 #include "../util/powmod.h"
33 DJNParty(UINT DJNbits, UINT sharelen);
38 void preCompBench(BYTE * bA, BYTE * bB, BYTE * bC, BYTE * bA1, BYTE * bB1, BYTE * bC1, UINT numMTs,
CSocket sock);
40 void setSharelLength(UINT sharelen);
45 USHORT m_nNumMTThreads;
46 USHORT m_nShareLength;
53 gmp_randstate_t m_randstate;
55 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,
58 void sendmpz_t(mpz_t t,
CSocket sock, BYTE * buf);
59 void receivempz_t(mpz_t t,
CSocket sock, BYTE * buf);
61 void sendmpz_t(mpz_t t,
CSocket sock);
62 void receivempz_t(mpz_t t,
CSocket sock);
64 void printBuf(BYTE* b, UINT l);
68 #endif //__DJN_PARTY_H__
Definition: djnparty.h:31