Files
MP-SPDZ/Protocols/ReplicatedPO.hpp
Marcel Keller e07d9bf2a3 Maintenance.
2022-01-11 16:05:26 +11:00

22 lines
348 B
C++

/*
* ReplicatedPO.cpp
*
*/
#include "ReplicatedPO.h"
#include "MaliciousRepPO.hpp"
template<class T>
void ReplicatedPO<T>::send(int player)
{
if (this->P.get_offset(player) == 2)
this->P.send_to(player, this->to_send);
}
template<class T>
void ReplicatedPO<T>::receive()
{
this->P.receive_relative(1, this->to_receive[0]);
}