Files
MP-SPDZ/Utils/hyper.cpp
Marcel Keller c597554af9 ATLAS.
2021-08-06 18:25:27 +10:00

23 lines
449 B
C++

/*
* hyper.cpp
*
*/
#include "Math/gfpvar.h"
#include "Protocols/Shamir.hpp"
int main(int argc, char** argv)
{
assert(argc > 2);
gfpvar::init_field(argv[3]);
vector<vector<gfpvar>> hyper;
int t = atoi(argv[1]);
int n = atoi(argv[2]);
Shamir<ShamirShare<gfpvar>>::get_hyper(hyper, t, n);
octetStream os;
os.store(hyper);
ofstream out(Shamir<ShamirShare<gfpvar>>::hyper_filename(t, n));
os.output(out);
}