Good find! I was able to reproduce this, and there is a bug in the RSA key
generation code. I filed it as:

http://bugzilla.mozilla.org/show_bug.cgi?id=75770

This error is much more likely to occur when the exponent is 3 than when it
is 65537.

Jung-Ho Ahn wrote:

> Hello,
>
> I am testing the jss package, but I found a problem during testing
> the 'TestKeyGen.java (in mozilla/security/jss/samples)' program.
>
> It seems that 'KeyPairGenerator.genKeyPair()' does not work
> for  512-bit RSA with exponents other than 65537 (for example, 3).


Reply via email to