Files
MP-SPDZ/OT/TripleMachine.h
Marcel Keller cc0711c224 MP-SPDZ.
2018-10-11 17:20:26 +11:00

38 lines
635 B
C++

/*
* TripleMachine.h
*
*/
#ifndef OT_TRIPLEMACHINE_H_
#define OT_TRIPLEMACHINE_H_
#include "Math/gf2n.h"
#include "Math/gfp.h"
#include "Tools/OfflineMachineBase.h"
class TripleMachine : public OfflineMachineBase
{
gf2n mac_key2;
gfp mac_keyp;
public:
int nloops;
string prep_data_dir;
bool generateMACs;
bool amplify;
bool check;
bool primeField;
bool bonding;
bool generateBits;
struct timeval start, stop;
TripleMachine(int argc, const char** argv);
void run();
template <class T>
T get_mac_key();
void output_mac_keys();
};
#endif /* OT_TRIPLEMACHINE_H_ */