HElib icon indicating copy to clipboard operation
HElib copied to clipboard

Changing Plaintext Space from p^e1 to p^e2

Open willarderic opened this issue 3 years ago • 1 comments

I would like to change the plaintext space from one exponent to another, in particular where e2 > e1. It was mentioned in another issue, and I saw a function called divideByP() in the code that reduces the plaintext space by a factor of p. Is there a way to increase the plaintext space by a factor of p, and if so what would the process for doing that be?

willarderic avatar Aug 23 '21 18:08 willarderic

As mentioned #280 you can use ctxt.hackPtxtSpace(p^e2), but you should take care of removing the noise in the higher-order digits before decrypting your ciphertext.

sajetan avatar May 31 '22 16:05 sajetan