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

Ensure constant bit size of Paillier modulus #183

Open
fjarri opened this issue Jan 28, 2025 · 0 comments
Open

Ensure constant bit size of Paillier modulus #183

fjarri opened this issue Jan 28, 2025 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@fjarri
Copy link
Member

fjarri commented Jan 28, 2025

Since the current crypto-primes behavior is to only set the MSB, the bit size of the product of two primes of bit size n can have the size of 2n or 2n-1 bits. With entropyxyz/crypto-primes#69 merged we can now set the second MSB as well, making the product bit size constant. This should be done in rsa.rs, and the modulus size conditions made more strict (look for MODULUS_BITS - 2 lines).

@fjarri fjarri added the enhancement New feature or request label Jan 28, 2025
@fjarri fjarri added this to the v0.3.0 milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant