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

CertificateDERDER-encoded X.509 certificate
AlgorithmOIDReceives the public-key algorithm OID, for example 1.2.840.10045.2.1 for EC
ParameterOIDReceives the parameter OID, for example a named curve; empty for RSA
PublicKeyReceives the raw subjectPublicKey bytes bit string

Return values

TrueAll three fields were extracted
FalseThe 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