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

Function Commit_To_Challenge

Tools/Subroutines.cpp:90–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89
90void Commit_To_Challenge(vector<unsigned int>& e,
91 vector<octetStream>& Comm_e,vector<octetStream>& Open_e,
92 const Player& P,int num_runs)
93{
94 CODE_LOCATION
95 PRNG G;
96 G.ReSeed();
97
98 e.resize(P.num_players());
99 Comm_e.resize(P.num_players());
100 Open_e.resize(P.num_players());
101
102 e[P.my_num()]=G.get_uint(num_runs);
103 octetStream ee; ee.store(e[P.my_num()]);
104 Commit(Comm_e[P.my_num()],Open_e[P.my_num()],ee,P.my_num());
105 P.Broadcast_Receive(Comm_e);
106}
107
108
109int Open_Challenge(vector<unsigned int>& e,vector<octetStream>& Open_e,

Callers 2

covert_generationFunction · 0.85
Run_Gen_ProtocolFunction · 0.85

Calls 8

ReSeedMethod · 0.80
CommitFunction · 0.70
get_uintMethod · 0.60
resizeMethod · 0.45
num_playersMethod · 0.45
my_numMethod · 0.45
storeMethod · 0.45
Broadcast_ReceiveMethod · 0.45

Tested by

no test coverage detected