mirror of
https://github.com/mii443/FINAL.git
synced 2025-08-22 15:05:36 +00:00
Refacto headers
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user