Files
MP-SPDZ/Processor/OfflineMachine.h
2022-04-02 08:06:03 +02:00

40 lines
788 B
C++

/*
* DishonestMajorityOfflineMachine.h
*
*/
#ifndef PROCESSOR_OFFLINEMACHINE_H_
#define PROCESSOR_OFFLINEMACHINE_H_
#include "OnlineMachine.h"
#include "Data_Files.h"
#include "BaseMachine.h"
#include "Networking/CryptoPlayer.h"
template<class W>
class OfflineMachine : public W
{
DataPositions usage;
BaseMachine machine;
Names& playerNames;
Player& P;
int n_threads;
template<class T>
void generate();
int buffered_total(size_t required, size_t batch);
public:
template<class V>
OfflineMachine(int argc, const char** argv,
ez::ezOptionParser& opt, OnlineOptions& online_opts, V,
int nplayers = 0);
~OfflineMachine();
template<class T, class U>
int run();
};
#endif /* PROCESSOR_OFFLINEMACHINE_H_ */