| 849 | |
| 850 | template <> |
| 851 | void 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*)®)->randomize(); |
| 859 | TrustedProgramParty::s().store_spdz_wire(SPDZ_LOAD, reg); |
| 860 | TrustedProgramParty::s().store_wire(reg); |
| 861 | } |
| 862 | } |
| 863 | |
| 864 | template <> |
| 865 | void GarbleRegister::load(vector<GC::ReadAccess< GC::Secret<GarbleRegister> > >& accesses, |
no test coverage detected