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

Method load

BMR/Register.cpp:851–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849
850template <>
851void RandomRegister::load(vector<GC::ReadAccess< GC::Secret<RandomRegister> > >& accesses,
852 const NoMemory& source)
853{
854 (void)source;
855 for (auto access : accesses)
856 for (auto& reg : access.dest.get_regs())
857 {
858 ((RandomRegister*)&reg)->randomize();
859 TrustedProgramParty::s().store_spdz_wire(SPDZ_LOAD, reg);
860 TrustedProgramParty::s().store_wire(reg);
861 }
862}
863
864template <>
865void GarbleRegister::load(vector<GC::ReadAccess< GC::Secret<GarbleRegister> > >& accesses,

Callers 1

RealProgramPartyMethod · 0.45

Calls 4

store_spdz_wireMethod · 0.80
randomizeMethod · 0.45
store_wireMethod · 0.45
load_wireMethod · 0.45

Tested by

no test coverage detected