PLCertificateUsesModernAlgorithm

Cryptography, digital signatures

Description

Reports whether a certificate carries a modern key or signature algorithm

Syntax

Delphi

Function PLCertificateUsesModernAlgorithm(Const CertificateDER: AnsiString): Boolean;

Parameters

CertificateDERDER-encoded X.509 certificate

Return values

TrueThe signature algorithm, key algorithm, or EC key parameter OID belongs to the modern family
FalseThe certificate uses a classic algorithm or failed to parse

The modern family covers Ed25519, Ed448, ML-DSA-44/65/87, SM2 and SM2-with-SM3 OIDs

Complements PLModernCertificateDERKeyAlgorithm, which returns the specific family constant

See also

PLModernCertificateDERKeyAlgorithm, PLValidateSM2Identity, PLValidateBrainpoolIdentity