support of RSAES-OAEP public keys
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
0x02 "md2WithRSAEncryption" OID_MD2_WITH_RSA
|
0x02 "md2WithRSAEncryption" OID_MD2_WITH_RSA
|
||||||
0x04 "md5WithRSAEncryption" OID_MD5_WITH_RSA
|
0x04 "md5WithRSAEncryption" OID_MD5_WITH_RSA
|
||||||
0x05 "sha-1WithRSAEncryption" OID_SHA1_WITH_RSA
|
0x05 "sha-1WithRSAEncryption" OID_SHA1_WITH_RSA
|
||||||
0x07 "id-RSAES-OAEP"
|
0x07 "id-RSAES-OAEP" OID_RSAES_OAEP
|
||||||
0x09 "id-pSpecified"
|
0x09 "id-pSpecified"
|
||||||
0x0B "sha256WithRSAEncryption" OID_SHA256_WITH_RSA
|
0x0B "sha256WithRSAEncryption" OID_SHA256_WITH_RSA
|
||||||
0x0C "sha384WithRSAEncryption" OID_SHA384_WITH_RSA
|
0x0C "sha384WithRSAEncryption" OID_SHA384_WITH_RSA
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ static public_key_t *parse_public_key(chunk_t blob)
|
|||||||
int oid = asn1_parse_algorithmIdentifier(object,
|
int oid = asn1_parse_algorithmIdentifier(object,
|
||||||
parser->get_level(parser)+1, NULL);
|
parser->get_level(parser)+1, NULL);
|
||||||
|
|
||||||
if (oid == OID_RSA_ENCRYPTION)
|
if (oid == OID_RSA_ENCRYPTION || oid == OID_RSAES_OAEP)
|
||||||
{
|
{
|
||||||
type = KEY_RSA;
|
type = KEY_RSA;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user