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

Weird n_{rsa} usage in the paper #180

Open
fjarri opened this issue Jan 23, 2025 · 3 comments
Open

Weird n_{rsa} usage in the paper #180

fjarri opened this issue Jan 23, 2025 · 3 comments
Labels
cryptography Needs cryptographic expertise
Milestone

Comments

@fjarri
Copy link
Member

fjarri commented Jan 23, 2025

Definition 3.1 in the 2024 version of the CGGMP paper reads:
Image

So is n_{rsa} the bit length of a single prime, or of N? And where does the [n_rsa, n_rsa + 4) bound come from (and can we use it to speed up our search for primes?).

@fjarri fjarri added the cryptography Needs cryptographic expertise label Jan 23, 2025
@fjarri fjarri added this to the v1.0.0 milestone Jan 23, 2025
@dvdplm
Copy link
Contributor

dvdplm commented Feb 3, 2025

I read it as n_rsa is the bitlength of N and the funny bound notation means that n_rsa has two MSBs set, so that N lies in the upper quarter of the n_rsa-bits long N.

FWIW I think there's a comma missing and that they meant to write: "…that returns a Paillier-Blum modulus N with its factorization, consisting of two primes p,q, of bitlength b ∈ [n_rsa, n_rsa + 4)…" (added a comma after "p, q").

@fjarri
Copy link
Member Author

fjarri commented Feb 4, 2025

FWIW I think there's a comma missing and that they meant to write: "…that returns a Paillier-Blum modulus N with its factorization, consisting of two primes p,q, of bitlength b ∈ [n_rsa, n_rsa + 4)…" (added a comma after "p, q").

Hm, quite possible, the phrasing is unfortunate.

and the funny bound notation means that n_rsa has two MSBs set

Do you mean, N has two MSBs set? Or p and q? n_rsa will be something like 2048.

@dvdplm
Copy link
Contributor

dvdplm commented Feb 6, 2025

Do you mean, N has two MSBs set? Or p and q? n_rsa will be something like 2048.

What I mean is that if p and q have the two MSBs set, then N will be guaranteed to have exactly 2048 bits (given p and q of 1024 bits), and it also means that the range of possible N is in [n/4...n-1]. But that said, I'm not sure if this is what they mean with "bitlength b ∈ [n_rsa, n_rsa + 4)". :/

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

No branches or pull requests

2 participants