mirror of
https://github.com/mii443/FINAL.git
synced 2025-08-22 23:15:28 +00:00
Refacto headers
This commit is contained in:
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
//TODO: description
|
|
||||||
|
|
||||||
class FFT_engine
|
class FFT_engine
|
||||||
{
|
{
|
||||||
int fft_dim;
|
int fft_dim;
|
||||||
@ -23,7 +21,6 @@ class FFT_engine
|
|||||||
fftw_complex* out_array;
|
fftw_complex* out_array;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//map<int, vector<FFTPoly>> x_powers;
|
|
||||||
vector<FFTPoly> pos_powers;
|
vector<FFTPoly> pos_powers;
|
||||||
vector<FFTPoly> neg_powers;
|
vector<FFTPoly> neg_powers;
|
||||||
|
|
||||||
|
@ -80,7 +80,6 @@ class SchemeLWE
|
|||||||
SchemeLWE()
|
SchemeLWE()
|
||||||
{
|
{
|
||||||
KeyGen keygen(parLWE);
|
KeyGen keygen(parLWE);
|
||||||
//sampler = Sampler(param);
|
|
||||||
|
|
||||||
keygen.get_sk_base(sk_base);
|
keygen.get_sk_base(sk_base);
|
||||||
keygen.get_sk_boot(sk_boot);
|
keygen.get_sk_boot(sk_boot);
|
||||||
|
@ -103,7 +103,6 @@ class SchemeNTRU
|
|||||||
SchemeNTRU()
|
SchemeNTRU()
|
||||||
{
|
{
|
||||||
KeyGen keygen(parNTRU);
|
KeyGen keygen(parNTRU);
|
||||||
//sampler = Sampler(param);
|
|
||||||
|
|
||||||
keygen.get_sk_base(sk_base);
|
keygen.get_sk_base(sk_base);
|
||||||
keygen.get_sk_boot(sk_boot);
|
keygen.get_sk_boot(sk_boot);
|
||||||
|
@ -123,10 +123,10 @@ class Param
|
|||||||
{
|
{
|
||||||
ZZ_pX poly;
|
ZZ_pX poly;
|
||||||
// polynomial modulus of the ring-based scheme
|
// polynomial modulus of the ring-based scheme
|
||||||
//element of Z_(q_boot)
|
// element of Z_(q_boot)
|
||||||
ZZ_p coef;
|
ZZ_p coef;
|
||||||
coef.init(ZZ(q_boot));
|
coef.init(ZZ(q_boot));
|
||||||
//polynomial modulus X^N+1
|
// polynomial modulus X^N+1
|
||||||
coef = 1;
|
coef = 1;
|
||||||
SetCoeff(poly, 0, coef);
|
SetCoeff(poly, 0, coef);
|
||||||
SetCoeff(poly, N, coef);
|
SetCoeff(poly, N, coef);
|
||||||
@ -152,7 +152,7 @@ class Param
|
|||||||
|
|
||||||
// ciphertext modulus of the base scheme used for encryption
|
// ciphertext modulus of the base scheme used for encryption
|
||||||
int q_base;
|
int q_base;
|
||||||
//half of the above modulus
|
// half of the above modulus
|
||||||
int half_q_base;
|
int half_q_base;
|
||||||
// dimension of the ciphertext space
|
// dimension of the ciphertext space
|
||||||
int n;
|
int n;
|
||||||
|
Reference in New Issue
Block a user