Always output SPDZ2k security parameter.

This commit is contained in:
Marcel Keller
2023-09-21 19:51:18 +10:00
parent 0d54e1f6af
commit 86d26cab52

View File

@@ -28,6 +28,7 @@ int main(int argc, const char** argv)
opt.parse(argc, argv);
int s;
opt.get("-SP")->getInt(s);
cerr << "Using SPDZ2k security parameter " << s << endl;
opt.resetArgs();
RingOptions ring_options(opt, argc, argv);
OnlineOptions& online_opts = OnlineOptions::singleton;
@@ -35,11 +36,6 @@ int main(int argc, const char** argv)
DishonestMajorityMachine machine(argc, argv, opt, online_opts, gf2n());
int k = ring_options.ring_size_from_opts_or_schedule(online_opts.progname);
#ifdef VERBOSE
cerr << "Using SPDZ2k with ring length " << k << " and security parameter "
<< s << endl;
#endif
#undef Z
#define Z(K, S) \
if (s == S and k == K) \