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

How can I improve the accuracy of my data? help! #263

Open Ldisi opened 5 years ago

Ldisi commented 5 years ago

I've been using HElib for a while,However, I was stumped by the difficulty of data accuracy. I mean , Helib allows to encrypt positive integer only, but we may need the decimal part in practice. My first thought is to scale the encrypted data with a number , maybe 1000 or bigger . Unfortunately, with the augment of data ,I have to increase p ,which leads to smaller L (Number of multiplication) .The logic is that : decimal -> scale data -> lager p -> smaller L . Do you have any good Suggestions for my problems? Maybe you also have insights in division. Happy for advice from everyone!

justtWu commented 5 years ago

I've got the same problem as yours?Could I ask you some questions? How do I expand the modulus?(if the size of modulus is limit to the precision of long?)

fionser commented 5 years ago