MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / setup

Method setup

OT/OTExtensionWithMatrix.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "OTCorrelator.hpp"
20
21OTExtensionWithMatrix OTExtensionWithMatrix::setup(TwoPartyPlayer& player,
22 int128 delta, OT_ROLE role, bool passive)
23{
24 BaseOT baseOT(128, &player, INV_ROLE(role));
25 PRNG G;
26 G.ReSeed();
27 baseOT.set_receiver_inputs(delta);
28 baseOT.exec_base(false);
29 return OTExtensionWithMatrix(baseOT, &player, passive);
30}
31
32OTExtensionWithMatrix::OTExtensionWithMatrix(BaseOT& baseOT, TwoPartyPlayer* player,
33 bool passive) : OTCorrelator(baseOT, player, passive)

Callers

nothing calls this directly

Calls 5

INV_ROLEFunction · 0.85
ReSeedMethod · 0.80
set_receiver_inputsMethod · 0.80
exec_baseMethod · 0.80

Tested by

no test coverage detected