Files
MP-SPDZ/Protocols/LimitedPrep.hpp
2020-03-20 20:31:25 +11:00

33 lines
509 B
C++

/*
* LimitedPrep.cpp
*
*/
#ifndef PROTOCOLS_LIMITEDPREP_HPP
#define PROTOCOLS_LIMITEDPREP_HPP
#include "LimitedPrep.h"
template<class T>
LimitedPrep<T>::LimitedPrep() :
BufferPrep<T>(usage)
{
}
template<class T>
LimitedPrep<T>::~LimitedPrep()
{
#ifdef VERBOSE
if (not this->triples.empty())
cerr << "Triples left" << endl;
#endif
}
template<class T>
void LimitedPrep<T>::set_protocol(typename T::Protocol& protocol)
{
usage.set_num_players(protocol.P.num_players());
}
#endif