mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-08 05:03:59 -05:00
40 lines
784 B
C++
40 lines
784 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, BaseMachine
|
|
{
|
|
DataPositions usage;
|
|
Names& playerNames;
|
|
Player& P;
|
|
|
|
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();
|
|
|
|
const Names& get_N();
|
|
};
|
|
|
|
#endif /* PROCESSOR_OFFLINEMACHINE_H_ */
|