RLWE Parameter Setting in BFV Homomorphic Encryption

Hi Everyone,

I am using src/pke/examples/simple-integers.cpp.
I want to change the RLWE parameter setting for secret key (and some other RLWE parameters). Can you please let me know where should i do the changes. Should I change in the below fie?

But unable to extract the lines.

Thanks in advance.

I want to better understand the question. Are you referring to changing the actual LWE tables (highly discouraged as these come from community security guidelines and lattice estimator) or you are asking about changing the parameters for BFV? I believe you are asking about the latter one, but please confirn.

Thanks for your reply.

In my understanding the OpenFHE might use secret key from ternary distribution and error from discrete Gaussian distribution.

Is it possible to change it into another safe setting (suggested by lattice estimator) ?

Thanks in advance.

For secret key distribution, OpenFHE supports GAUSSIAN and UNIFORM_TERNARY (default). SPARSE_SECRET is also supported (but parameters should be set manually by the developer in this case). See Enum SecretKeyDist — OpenFHE documentation

For the error distribution, the GAUSSIAN distribution is the only supported option.

1 Like