PLVerifyRSAPSSPure

Cryptography, digital signatures

Description

Verifies an RSA-PSS signature against a public key, digest, hash OID and explicit salt length without any system crypto

Syntax

Delphi

Function PLVerifyRSAPSSPure(Const PublicKey, Digest, HashOID: AnsiString;
  SaltLength: Integer; Const Signature: AnsiString): Boolean;

Parameters

PublicKeyRaw RSA public key bytes from the certificate SubjectPublicKeyInfo
DigestThe hash bytes that were signed
HashOIDOID of the hash used for both PSS hashing and MGF1
SaltLengthSalt byte count the signer used; must match to verify
SignatureThe signature bytes to verify

Return values

TrueThe PSS structure and mask comparison verify
FalseMalformed input, wrong salt length, or the verification failed

Remarks

Used when a signature policy pins an explicit salt length that platform verification APIs would reject

See also

PLVerifyRSAPKCS1Pure, PLVerifyECDSAPure, PLCertificatePublicKeyInfo