PLCertificatePublicKeyInfo
Cryptography, digital signatures
Description
Extracts the SubjectPublicKeyInfo fields of a DER certificate: algorithm OID, parameter OID and raw public key bytes
Syntax
Delphi
Function PLCertificatePublicKeyInfo(Const CertificateDER: AnsiString;
Out AlgorithmOID, ParameterOID, PublicKey: AnsiString): Boolean;Parameters
| CertificateDER | DER-encoded X.509 certificate |
|---|---|
| AlgorithmOID | Receives the public-key algorithm OID, for example 1.2.840.10045.2.1 for EC |
| ParameterOID | Receives the parameter OID, for example a named curve; empty for RSA |
| PublicKey | Receives the raw subjectPublicKey bytes bit string |
Return values
| True | All three fields were extracted |
|---|---|
| False | The DER data is not a parsable certificate |
Remarks
The values feed the pure verification helpers such as PLVerifyECDSAPure and PLVerifyRSAPSSPure
See also
PLVerifyECDSAPure, PLVerifyRSAPKCS1Pure, PLVerifyRSAPSSPure, PLSplitCertificateBundle