PLVerifyECDSAPure

Cryptography, digital signatures

Description

Verifies an ECDSA signature against a curve, public key point and digest without any system crypto

Syntax

Delphi

Function PLVerifyECDSAPure(Const CurveOID, PublicKey, Digest,
  Signature: AnsiString; IsRawP1363: Boolean= False): Boolean;

Parameters

CurveOIDNamed-curve OID of the key, for example 1.3.36.3.3.2.8.1.1.7 for brainpoolP256r1
PublicKeyUncompressed EC point bytes from the certificate SubjectPublicKeyInfo
DigestThe hash bytes that were signed
SignatureDER-encoded ECDSA signature, or raw r||s when IsRawP1363 is set
IsRawP1363Selects the IEEE P1363 raw concatenation instead of ASN.1 DER

Return values

TrueThe signature verifies against the public point
FalseThe signature, point or curve is malformed or the verification equation fails

Remarks

Pure-Pascal verifier used by detached CMS validation for curves without CNG support, alongside PLVerifyRSAPKCS1Pure and PLVerifyRSAPSSPure

See also

PLVerifyRSAPKCS1Pure, PLVerifyRSAPSSPure, PLCertificatePublicKeyInfo