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 759 forks source link

Where does 'rescale' work in CKKS scheme? #466

Open DylanWangWQF opened 2 years ago

DylanWangWQF commented 2 years ago

Hi team, I'm studying the CKKS scheme and wondering how does the rescale part work in the CKKS of HElib. If it's possible to modify it by ourselves? Similar question in #404 . For example, in HEAAN library, we can do:

reScaleByAndEqual(ctxt, cBits);
reScaleByAndEqual(ctxt, ctxt.logp);