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

Rotation in 2^64 #414

Open dtoprakhisar opened 3 years ago

dtoprakhisar commented 3 years ago

Hi,

My aim is to put polynomials in GF(2^64) in slots, and do a rotation. Right now I have a ciphertext which has 2 slots and in each slot there is a polynomial in GF(2^64). However, I am having problems in creating the context. The parameters I tried:

p=2 phi(m)=10240, m=10897 d=64 (Order of 2 is 64) I chose 44 as generator which has order 80. (80 is multiple of 2 - I had 2 slots)

Am I trying wrong parameters? If so, how should I choose my parameters?

Thank you