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
| CurveOID | Named-curve OID of the key, for example 1.3.36.3.3.2.8.1.1.7 for brainpoolP256r1 |
|---|---|
| PublicKey | Uncompressed EC point bytes from the certificate SubjectPublicKeyInfo |
| Digest | The hash bytes that were signed |
| Signature | DER-encoded ECDSA signature, or raw r||s when IsRawP1363 is set |
| IsRawP1363 | Selects the IEEE P1363 raw concatenation instead of ASN.1 DER |
Return values
| True | The signature verifies against the public point |
|---|---|
| False | The 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