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

Method Gen_Random_Data

FHEOffline/DistKeyGen.cpp:107–114  ·  view source on GitHub ↗

* Generate the random data used in key generation */

Source from the content-addressed store, hash-verified

105 * Generate the random data used in key generation
106 */
107void DistKeyGen::Gen_Random_Data(PRNG& G)
108{
109 secret.from(GaussianGenerator<bigint>(params.get_DG(), G));
110 rc1.generate(G);
111 rc2.generate(G);
112 a.randomize(G);
113 e.from(GaussianGenerator<bigint>(params.get_DG(), G));
114}
115
116DistKeyGen& DistKeyGen::operator+=(const DistKeyGen& other)
117{

Callers 3

fakeMethod · 0.80
check_randomnessFunction · 0.80
Run_Gen_ProtocolFunction · 0.80

Calls 4

get_DGMethod · 0.80
fromMethod · 0.45
generateMethod · 0.45
randomizeMethod · 0.45

Tested by

no test coverage detected