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

28 lines
577 B
C++

/*
* ReplicatedInput.h
*
*/
#ifndef PROCESSOR_REPLICATEDINPUT_H_
#define PROCESSOR_REPLICATEDINPUT_H_
#include "Auth/ReplicatedMC.h"
#include "Input.h"
class Processor;
template <class T>
class ReplicatedInput : public InputBase<typename T::value_type>
{
Processor& proc;
vector<T> shares;
public:
ReplicatedInput(Processor& proc, ReplicatedMC<T>& MC) : InputBase<typename T::value_type>(proc), proc(proc) { (void)MC; }
void start(int player, int n_inputs);
void stop(int player, vector<int> targets);
};
#endif /* PROCESSOR_REPLICATEDINPUT_H_ */