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

Method op

BMR/Register.cpp:205–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void EvalRegister::op(const ProgramRegister& left, const ProgramRegister& right, Function func)
206{
207 (void)func;
208#ifdef DEBUG
209 cout << "eval left " << &left << " " << dec << " " << left.get_id() << endl;
210 cout << "eval right " << &right << " " << dec << " " << right.get_id() << endl;
211#endif
212 ProgramParty& party = *ProgramParty::singleton;
213 GarbledGate gate(party.get_n_parties());
214 party.next_gate(gate);
215 gate.unserialize(party.garbled_circuit, party.get_n_parties());
216 party.prf_output.resize(PAD_TO_8(party.get_n_parties()) * sizeof(__m128i));
217 Register::eval(left, right, gate, party._id, party.prf_output.data(),
218 get_id(), left.get_id(), right.get_id());
219}
220
221void Register::eval(const Register& left, const Register& right, GarbledGate& gate,
222 party_id_t my_id, char* prf_output, int w_o, int w_l, int w_r)

Callers 1

ANDFunction · 0.45

Calls 15

runtime_errorFunction · 0.85
get_n_partiesMethod · 0.80
compute_prfs_outputsMethod · 0.80
new_gateMethod · 0.80
get_idMethod · 0.45
next_gateMethod · 0.45
unserializeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
load_wireMethod · 0.45
sizeMethod · 0.45
receive_keysMethod · 0.45

Tested by

no test coverage detected