github.com/jiajun1992/watercarver@v0.0.0-20191031150618-dfc2b17c0c4a/StadiumForWaterCarver/src/Globals.h (about) 1 #ifndef __GLOBALS_H__ 2 #define __GLOBALS_H__ 3 4 5 #include <thread> 6 7 #include "ElGammal.h" 8 #include "FakeZZ.h" 9 10 NTL_CLIENT 11 12 13 G_q G=G_q();// group used for the Pedersen commitment 14 //Mod_p G_h;// generator of the Pedersen commitment 15 G_q H=G_q();// group used for the the encryption 16 //ElGammal El = ElGammal(); //The class for encryption and decryption 17 //Pedersen Ped = Pedersen(); //Object which calculates the commitments 18 string publicRandoms; 19 string kConfigFile("config/config"); 20 ZZ genq; //generator of Z_q 21 long m; 22 vector<long> num(8); 23 24 //OpenMP parallelization configuration 25 bool parallel = 1; 26 int num_threads = std::thread::hardware_concurrency(); 27 28 long m_r=0;//number of rows after reduction 29 long mu=0; //number of rows after reduction 30 long mu_h=0;//2*mu-1, number of extra elements in the reduction 31 32 #define kGroup (1248) 33 34 #endif