mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
41 lines
703 B
C++
41 lines
703 B
C++
// (C) 2016 University of Bristol. See License.txt
|
|
|
|
/*
|
|
* TripleMachine.h
|
|
*
|
|
*/
|
|
|
|
#ifndef OT_TRIPLEMACHINE_H_
|
|
#define OT_TRIPLEMACHINE_H_
|
|
|
|
#include "Math/gf2n.h"
|
|
#include "Math/gfp.h"
|
|
|
|
class TripleMachine
|
|
{
|
|
gf2n mac_key2;
|
|
gfp mac_keyp;
|
|
|
|
public:
|
|
int my_num, nplayers, nthreads, ntriples, nloops;
|
|
int nTriplesPerThread;
|
|
string prep_data_dir;
|
|
bool generateMACs;
|
|
bool amplify;
|
|
bool check;
|
|
bool primeField;
|
|
bool bonding;
|
|
bool generateBits;
|
|
bool output;
|
|
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_ */
|