support of RSAES-OAEP public keys
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 8 Mar 2011 06:03:22 +0000 (07:03 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 8 Mar 2011 06:03:22 +0000 (07:03 +0100)
src/libstrongswan/asn1/oid.txt
src/libstrongswan/plugins/pkcs1/pkcs1_builder.c

index 4dae7e4..b35e999 100644 (file)
@@ -91,7 +91,7 @@
                 0x02         "md2WithRSAEncryption"            OID_MD2_WITH_RSA
                 0x04         "md5WithRSAEncryption"            OID_MD5_WITH_RSA
                 0x05         "sha-1WithRSAEncryption"  OID_SHA1_WITH_RSA
-                0x07         "id-RSAES-OAEP"
+                0x07         "id-RSAES-OAEP"                   OID_RSAES_OAEP
                 0x09         "id-pSpecified"
                 0x0B         "sha256WithRSAEncryption" OID_SHA256_WITH_RSA
                 0x0C         "sha384WithRSAEncryption" OID_SHA384_WITH_RSA
index 88c8488..a605fab 100644 (file)
@@ -57,7 +57,7 @@ static public_key_t *parse_public_key(chunk_t blob)
                                int oid = asn1_parse_algorithmIdentifier(object,
                                                                                parser->get_level(parser)+1, NULL);
 
-                               if (oid == OID_RSA_ENCRYPTION)
+                               if (oid == OID_RSA_ENCRYPTION || oid == OID_RSAES_OAEP)
                                {
                                        type = KEY_RSA;
                                }