mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
22 lines
348 B
C++
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]);
|
|
}
|