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.
Small bug in
Ctxt::addConstantCKKS(double x)
-- if the value ofr
is bigger than 30, then the left-shift is an undefined behavior.The fix converts the 1 to long so that we can shift-left by all allowed values of
r
(the allowed range is 1 to 59).