mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-08 05:03:59 -05:00
33 lines
588 B
C++
33 lines
588 B
C++
/*
|
|
* PrivateOutput.h
|
|
*
|
|
*/
|
|
|
|
#ifndef PROCESSOR_PRIVATEOUTPUT_H_
|
|
#define PROCESSOR_PRIVATEOUTPUT_H_
|
|
|
|
#include <deque>
|
|
using namespace std;
|
|
|
|
template<class T> class SubProcessor;
|
|
|
|
template<class T>
|
|
class PrivateOutput
|
|
{
|
|
typedef typename T::open_type open_type;
|
|
|
|
SubProcessor<T>& proc;
|
|
typename T::MAC_Check MC;
|
|
deque<open_type> masks;
|
|
|
|
public:
|
|
PrivateOutput(SubProcessor<T>& proc);
|
|
~PrivateOutput();
|
|
|
|
void prepare_sending(const T& source, int player);
|
|
void exchange();
|
|
typename T::clear finalize(int player);
|
|
};
|
|
|
|
#endif /* PROCESSOR_PRIVATEOUTPUT_H_ */
|