PLVerifyRSAPKCS1Pure

Cryptography, digital signatures

Description

Verifies an RSA PKCS#1 v1.5 signature against a public key, digest and digest OID without any system crypto

Syntax

Delphi

Function PLVerifyRSAPKCS1Pure(Const PublicKey, Digest, DigestOID,
  Signature: AnsiString): Boolean;

Parameters

PublicKeyRaw RSA public key bytes from the certificate SubjectPublicKeyInfo
DigestThe hash bytes that were signed
DigestOIDOID identifying the digest algorithm inside the DigestInfo structure
SignatureThe signature bytes to verify

Return values

TrueThe signature verifies and the DigestInfo matches Digest and DigestOID
FalseMalformed input or the verification failed

Remarks

Implements the PKCS#1 v1.5 verification primitive in pure Pascal; the PSS counterpart is PLVerifyRSAPSSPure

See also

PLVerifyRSAPSSPure, PLVerifyECDSAPure, PLCertificatePublicKeyInfo