diff options
author | Jack Lloyd <[email protected]> | 2019-05-09 10:49:38 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-09 10:49:38 -0400 |
commit | b26b472e0b90e83d565c9c8d64d6fc2591c286c5 (patch) | |
tree | d831bf9fb4abbd082482e30bace67a37f06e138d /src/lib | |
parent | 87172d3bf58b2b3b6575087c42e05f801789e025 (diff) |
Fix decoding of RSA-OAEP certs
GH #1943
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/x509/x509cert.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/x509/x509cert.cpp b/src/lib/x509/x509cert.cpp index de4b0ed7a..0212267ec 100644 --- a/src/lib/x509/x509cert.cpp +++ b/src/lib/x509/x509cert.cpp @@ -176,17 +176,13 @@ std::unique_ptr<X509_Certificate_Data> parse_x509_cert_body(const X509_Object& o throw Decoding_Error("Algorithm identifier mismatch"); } } - if(public_key_info[1] == "OAEP") - { - throw Decoding_Error("Decoding subject public keys of type RSAES-OAEP is currently not supported"); - } } else { // oid = rsaEncryption -> parameters field MUST contain NULL if(public_key_alg_id != AlgorithmIdentifier(public_key_alg_id.get_oid(), AlgorithmIdentifier::USE_NULL_PARAM)) { - throw Decoding_Error("Parameters field MUST contain NULL"); + throw Decoding_Error("RSA algorithm parameters field MUST contain NULL"); } } } |