Re: RSA moduli sizes



K. Jennings ha scritto:
However, does it make any difference, from a security point of view, if the most significant bit of the modulus is zero?

Well, if you're after - say - a 1024-bit modulus, which means a 1024-bit key, and the MSB happens to be zero, then that's not a 1024-bit key.

It also simplify things to have the MSB set in the modulus N and clear in the message M you encrypt / sign, because that ensures it's always M < N and the remaining 1023 bit pattern of M can be anything.

Regards,
Giuliano Bertoletti
.



Relevant Pages

  • Re: RSA moduli sizes
    ... the most significant bit of the modulus is zero? ... what is the rationale for making sure that the MSB ...
    (sci.crypt)
  • Re: RSA moduli sizes
    ... it is 8 zero bits, ... A RSA modulus is positive and thus the most significant bit ... so by pubkey's standards an AES key AND an RSA ...
    (sci.crypt)
  • [WATCHDOG] v2.6.25 watchdog fix
    ... it8712f_wdt Zero MSB timeout byte when disabling watchdog ... but the normal timeout value is set to zero, so the MSB should ...
    (Linux-Kernel)
  • Re: OAEP padding question
    ... A technically valid PKCS OAEP decoder MUST check for the ... As far as the decoder, if your library strips leading zeros, then the ... > to zero pad the input to the length of the modulus. ...
    (sci.crypt)
  • Re: RSA moduli sizes
    ... sequence] with a leading bit of zero in the modulus all I wanted. ... It'd still be imported (provided no more than 6 zero bits were present ... math still works, etc, and so on. ... [or at least most math libraries can cope with that]. ...
    (sci.crypt)

Quantcast