[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/25143] javax.crypto.EncryptedPrivateKeyInfo constructor d
From: |
berrange at redhat dot com |
Subject: |
[Bug classpath/25143] javax.crypto.EncryptedPrivateKeyInfo constructor does not accept algorithm names, only OIDs |
Date: |
28 Nov 2005 18:02:29 -0000 |
------- Comment #1 from berrange at redhat dot com 2005-11-28 18:02 -------
Created an attachment (id=10356)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10356&action=view)
Test program demonstrating behaviour of EncryptedPrivateKeyInfo when passed an
algorithm name or OID
When running on the Sun 1.4 JVM, using either an algorithm name, or OID with
EncryptedPrivateKeyInfo succeeds:
$ /usr/local/j2sdk1.4.2_10/bin/java -cp . EncryptedPrivateKeyInfoOIDTest
Encrypted key: javax.crypto.EncryptedPrivateKeyInfo
Size 23
Encrypted key: javax.crypto.EncryptedPrivateKeyInfo
Size 23
Using JamVM 1.3.3 + ClassPath 0.19, an exception is thrown when using an
algorithm name:
$ ~/usr/jamvm-1.3.3/bin/jamvm -cp . EncryptedPrivateKeyInfoOIDTest
Encrypted key: javax.crypto.EncryptedPrivateKeyInfo
Size 21
java.lang.NumberFormatException: invalid character at position 1 in DSA
at java.lang.Integer.parseInt (Integer.java:768)
at java.lang.Integer.parseInt (Integer.java:261)
at gnu.java.security.OID.fromString (OID.java:479)
at gnu.java.security.OID.<init> (OID.java:155)
at gnu.java.security.OID.<init> (OID.java:138)
at javax.crypto.EncryptedPrivateKeyInfo.<init>
(EncryptedPrivateKeyInfo.java:171)
at EncryptedPrivateKeyInfoOIDTest.testit
(EncryptedPrivateKeyInfoOIDTest.java:20)
at EncryptedPrivateKeyInfoOIDTest.main
(EncryptedPrivateKeyInfoOIDTest.java:12)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25143