mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
22 lines
439 B
C++
22 lines
439 B
C++
/*
|
|
* YaoGarbleMaster.cpp
|
|
*
|
|
*/
|
|
|
|
#include "YaoGarbleMaster.h"
|
|
#include "YaoGarbler.h"
|
|
|
|
YaoGarbleMaster::YaoGarbleMaster(bool continuous, OnlineOptions& opts, int threshold) :
|
|
super(opts), continuous(continuous), threshold(threshold)
|
|
{
|
|
PRNG G;
|
|
G.ReSeed();
|
|
delta = G.get_doubleword();
|
|
delta.set_signal(1);
|
|
}
|
|
|
|
Thread<Secret<YaoGarbleWire>>* YaoGarbleMaster::new_thread(int i)
|
|
{
|
|
return new YaoGarbler(i, *this);
|
|
}
|