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.13k stars 765 forks source link

How to enable bootstrapping? #120

Open omar-selo opened 7 years ago

omar-selo commented 7 years ago

I want to enable bootstrapping because I keep getting Ctxt::findBaseSet warning: already at lowest level when I do many multiplications.

I tried using context.makeBootstrappable(mvec) where mvec = [m] but it still does not bootstrap even though context.isBootstrappable() returns true.

Is there some other step I need to take to enable bootstrapping?

emeka142 commented 7 years ago

I am also having the same issue.

AlexanderViand commented 7 years ago

It's not automatic afaik, you need to call void recrypt(Ctxt &ctxt) from FHE.h