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

Sub-optimal computation in Paillier encryption #1

Open
mihaitodor opened this issue Nov 17, 2019 · 0 comments
Open

Sub-optimal computation in Paillier encryption #1

mihaitodor opened this issue Nov 17, 2019 · 0 comments

Comments

@mihaitodor
Copy link
Owner

Looking at this code again, skipping the modulo n^2 operation is probably a bad idea if the plaintext is a large number. I guess the optimal thing to do would be to figure out the threshold at which skipping it makes sense, but, otherwise, RandomizeCiphertext will be faster if we make sure it only multiplies numbers that are smaller than n^2.

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

1 participant