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