bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug crypto/28556] New: KeyFactory "RSA" fails to parse some PKCS8 encod


From: csm at gnu dot org
Subject: [Bug crypto/28556] New: KeyFactory "RSA" fails to parse some PKCS8 encoded keys
Date: 31 Jul 2006 20:42:07 -0000

The RSA and PKCS8 key factory implementations don't work with some RSA private
keys, such as those generated with OpenSSL.

To reproduce:

jamvm ParseKey rsakey.der

Expected results:
<<no output>>

Actual results:
java.security.spec.InvalidKeySpecException
   at
gnu.java.security.jce.sig.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:138)
   at java.security.KeyFactory.generatePrivate(KeyFactory.java:234)
   at ParseCert.main(ParseCert.java:24)
Caused by: java.lang.NullPointerException
   at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:90)
   at gnu.java.security.der.DERReader.<init>(DERReader.java:83)
   at
gnu.java.security.key.rsa.RSAKeyPairPKCS8Codec.decodePrivateKey(RSAKeyPairPKCS8Codec.java:245)
   at
gnu.java.security.jce.sig.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:134)
   ...2 more


-- 
           Summary: KeyFactory "RSA" fails to parse some PKCS8 encoded keys
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: crypto
        AssignedTo: csm at gnu dot org
        ReportedBy: csm at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28556





reply via email to

[Prev in Thread] Current Thread [Next in Thread]