# HG changeset patch # User xuelei # Date 1244768438 -28800 # Node ID 276b6d106714fedd383b591e158f2ed2e550d532 # Parent 0418028311a29928d07bcd60537e6062cb064450 6570344: Invalid RSA OID in sun.security.x509.AlgorithmId Summary: change RSA OID to "2.5.8.1.1" Reviewed-by: mullan diff -r 0418028311a2 -r 276b6d106714 jdk/src/share/classes/sun/security/x509/AlgorithmId.java --- a/jdk/src/share/classes/sun/security/x509/AlgorithmId.java Wed Jun 10 09:12:15 2009 -0700 +++ b/jdk/src/share/classes/sun/security/x509/AlgorithmId.java Fri Jun 12 09:00:38 2009 +0800 @@ -621,7 +621,7 @@ private static final int DH_PKIX_data[] = { 1, 2, 840, 10046, 2, 1 }; private static final int DSA_OIW_data[] = { 1, 3, 14, 3, 2, 12 }; private static final int DSA_PKIX_data[] = { 1, 2, 840, 10040, 4, 1 }; - private static final int RSA_data[] = { 1, 2, 5, 8, 1, 1 }; + private static final int RSA_data[] = { 2, 5, 8, 1, 1 }; private static final int RSAEncryption_data[] = { 1, 2, 840, 113549, 1, 1, 1 }; @@ -745,7 +745,7 @@ * Algorithm ID for RSA keys used for any purpose, as defined in X.509. * The algorithm parameter is a single value, the number of bits in the * public modulus. - * OID = 1.2.5.8.1.1 + * OID = 2.5.8.1.1 */ RSA_oid = ObjectIdentifier.newInternal(RSA_data);