mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 21:48:11 -05:00
23 lines
449 B
C++
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);
|
|
}
|