mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Various improvements.
This commit is contained in:
18
Utils/prime.cpp
Normal file
18
Utils/prime.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* prime.cpp
|
||||
*
|
||||
*/
|
||||
|
||||
#include "Math/gfp.h"
|
||||
#include "Math/Setup.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int lgp = gfp0::size_in_bits();
|
||||
if (argc > 1)
|
||||
lgp = atoi(argv[1]);
|
||||
if (argc > 2)
|
||||
cout << generate_prime(lgp, 1 << atoi(argv[2])) << endl;
|
||||
else
|
||||
cout << SPDZ_Data_Setup_Primes(lgp) << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user