Refacto headers

This commit is contained in:
iliailia
2022-01-18 23:46:26 +01:00
parent bd0c6ed153
commit 3e273714b8
4 changed files with 3 additions and 8 deletions

View File

@ -9,8 +9,6 @@
using namespace std;
//TODO: description
class FFT_engine
{
int fft_dim;
@ -23,7 +21,6 @@ class FFT_engine
fftw_complex* out_array;
public:
//map<int, vector<FFTPoly>> x_powers;
vector<FFTPoly> pos_powers;
vector<FFTPoly> neg_powers;

View File

@ -80,7 +80,6 @@ class SchemeLWE
SchemeLWE()
{
KeyGen keygen(parLWE);
//sampler = Sampler(param);
keygen.get_sk_base(sk_base);
keygen.get_sk_boot(sk_boot);

View File

@ -103,7 +103,6 @@ class SchemeNTRU
SchemeNTRU()
{
KeyGen keygen(parNTRU);
//sampler = Sampler(param);
keygen.get_sk_base(sk_base);
keygen.get_sk_boot(sk_boot);

View File

@ -123,10 +123,10 @@ class Param
{
ZZ_pX poly;
// polynomial modulus of the ring-based scheme
//element of Z_(q_boot)
// element of Z_(q_boot)
ZZ_p coef;
coef.init(ZZ(q_boot));
//polynomial modulus X^N+1
// polynomial modulus X^N+1
coef = 1;
SetCoeff(poly, 0, coef);
SetCoeff(poly, N, coef);
@ -152,7 +152,7 @@ class Param
// ciphertext modulus of the base scheme used for encryption
int q_base;
//half of the above modulus
// half of the above modulus
int half_q_base;
// dimension of the ciphertext space
int n;