homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.11k stars 760 forks source link

about parameter setting #416

Open gaojunjie03 opened 3 years ago

gaojunjie03 commented 3 years ago

I'm not sure how to set these encryption parameters or what their functions are. Is there a document or detailed information about the function and scope of these parameter settings?

image

and then why is this P-2? Is it (P-2)% p? = = > a ^ - 1 If I want a ^ 2, a ^ 3... How to set it? image

jzw9510 commented 3 years ago

Me too, who can answer this question ?

JustKshitijD commented 9 months ago

Regarding the second doubt - [x^(p-2)=1/x] mod p according to Fermat's theorem. So, x^(p-2)*x=1 (mod p).

takashimayunachikage commented 4 months ago

I also want to know how to set these parameters, because I found that these parameters cannot be set arbitrarily. If the values are set incorrectly, it will cause the program to report an error.