How can I improve the accuracy of my data? help!
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!
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?)
- Try using multiple co-prime
t, sayK > 1co-primet. - And encrypt you data with these
Kkeys. - Perform the computation parallel, on the
Kcopies of ciphertexts. - Reconstruct you result from
Kresults using the CRT.