#include "emp-ot/emp-ot.h" #include "test/test.h" using namespace std; int port; int64_t party; const static int64_t threads = 2; void test_ferret(int64_t party, NetIO *ios[threads], int64_t num_ot) { auto start = clock_start(); FerretCOT * ferretcot = new FerretCOT(party, threads, ios, true, true, ferret_b13); double timeused = time_from(start); std::cout << party << "\tsetup\t" << timeused/1000 << "ms" << std::endl; // RCOT // The RCOTs will be generated at internal memory, and copied to user buffer int64_t num = 1 << num_ot; cout <<"Active FERRET RCOT\t"<>(ferretcot, ios[0], party, num, false)*1e6<<" OTps"<ot_limit; cout <<"Active FERRET RCOT inplace\t"<>(ferretcot, ios[0], party, batch_size, true)*1e6<<" OTps"< 3) length = atoi(argv[3]); if(length > 30) { cout <<"Large test size! comment me if you want to run this size\n"; exit(1); } test_ferret(party, ios, length); for(int64_t i = 0; i < threads; ++i) delete ios[i]; }