Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Plaintext Space from p^e1 to p^e2 #455

Open
willarderic opened this issue Aug 23, 2021 · 1 comment
Open

Changing Plaintext Space from p^e1 to p^e2 #455

willarderic opened this issue Aug 23, 2021 · 1 comment

Comments

@willarderic
Copy link

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?

@sajetan
Copy link
Contributor

sajetan commented May 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants