forked from data61/MP-SPDZ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TripleMachine.h
47 lines (34 loc) · 827 Bytes
/
TripleMachine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* TripleMachine.h
*
*/
#ifndef OT_TRIPLEMACHINE_H_
#define OT_TRIPLEMACHINE_H_
#include "Math/gf2n.h"
#include "Math/gfp.h"
#include "Math/Z2k.h"
#include "OT/OTTripleSetup.h"
#include "OT/MascotParams.h"
#include "Tools/NetworkOptions.h"
class GeneratorThread;
class TripleMachine : public OfflineMachineBase, public MascotParams
{
Names N[2];
int nConnections;
gf2n mac_key2;
gfpvar1 mac_keyp;
Z2<128> mac_keyz;
bigint prime;
Player* player;
int nloops;
bool bonding;
int z2k, z2s;
NetworkOptionsWithNumber network_opts;
public:
TripleMachine(int argc, const char** argv);
template<class T>
GeneratorThread* new_generator(OTTripleSetup& setup, int i,
typename T::mac_key_type mac_key);
void run();
};
#endif /* OT_TRIPLEMACHINE_H_ */