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

Method SimpleMachine

FHEOffline/SimpleMachine.cpp:180–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180SimpleMachine::SimpleMachine(int argc, const char** argv)
181{
182 opt.add(
183 "", // Default.
184 0, // Required?
185 0, // Number of args expected.
186 0, // Delimiter if expecting multiple args.
187 "Use global zero-knowledge proof", // Help description.
188 "-g", // Flag token.
189 "--global-proof" // Flag token.
190 );
191 parse_options(argc, argv);
192 if (opt.get("-g")->isSet)
193 generate_setup(INTERACTIVE_SPDZ1_SLACK);
194 else
195 generate_setup(NONINTERACTIVE_SPDZ1_SLACK);
196 for (int i = 0; i < nthreads; i++)
197 if (opt.get("-g")->isSet)
198 if (use_gf2n)
199 generators.push_back(new_generator<SummingEncCommit, P2Data>(i));
200 else
201 generators.push_back(new_generator<SummingEncCommit, FFT_Data>(i));
202 else
203 if (use_gf2n)
204 generators.push_back(new_generator<SimpleEncCommit_, P2Data>(i));
205 else
206 generators.push_back(new_generator<SimpleEncCommit_, FFT_Data>(i));
207}
208
209template <template <class FD> class EC, class FD>
210GeneratorBase* SimpleMachine::new_generator(int i)

Callers

nothing calls this directly

Calls 4

generate_setupFunction · 0.85
addMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected