add mpc_test.sh and get it working

This commit is contained in:
Andrew Morris
2025-01-15 15:06:52 +11:00
parent b272c9b4ea
commit 0af266cf69
2 changed files with 33 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
using namespace std;
using namespace emp;
const string circuit_file_location = macro_xstr(EMP_CIRCUIT_PATH) + string("bristol_format/");
const string circuit_file_location = "circuits/sha-1.txt";;
static char out3[] = "92b404e556588ced6c1acd4ebf053f6809f73a93";//bafbc2c87c33322603f38e06c3e0f79c1f1b1475";
int main(int argc, char** argv) {
@@ -15,9 +15,7 @@ int main(int argc, char** argv) {
NetIOMP<nP> io2(party, port+2*(nP+1)*(nP+1)+1);
NetIOMP<nP> *ios[2] = {&io, &io2};
ThreadPool pool(4);
string file = circuit_file_location+"/AES-non-expanded.txt";
file = circuit_file_location+"/sha-1.txt";
BristolFormat cf(file.c_str());
BristolFormat cf(circuit_file_location.c_str());
CMPC<nP>* mpc = new CMPC<nP>(ios, &pool, party, &cf);
cout <<"Setup:\t"<<party<<"\n";