mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
28 lines
585 B
C++
28 lines
585 B
C++
/*
|
|
* semi2k-party.cpp
|
|
*
|
|
*/
|
|
|
|
#include "Math/Semi2kShare.h"
|
|
#include "Math/gf2n.h"
|
|
#include "Processor/RingOptions.h"
|
|
|
|
#include "Player-Online.hpp"
|
|
|
|
int main(int argc, const char** argv)
|
|
{
|
|
ez::ezOptionParser opt;
|
|
RingOptions opts(opt, argc, argv);
|
|
switch (opts.R)
|
|
{
|
|
case 64:
|
|
spdz_main<Semi2kShare<64>, SemiShare<gf2n>>(argc, argv, opt);
|
|
break;
|
|
case 72:
|
|
spdz_main<Semi2kShare<72>, SemiShare<gf2n>>(argc, argv, opt);
|
|
break;
|
|
default:
|
|
throw runtime_error(to_string(opts.R) + "-bit computation not implemented");
|
|
}
|
|
}
|