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
| PublicKey | Raw RSA public key bytes from the certificate SubjectPublicKeyInfo |
|---|---|
| Digest | The hash bytes that were signed |
| DigestOID | OID identifying the digest algorithm inside the DigestInfo structure |
| Signature | The signature bytes to verify |
Return values
| True | The signature verifies and the DigestInfo matches Digest and DigestOID |
|---|---|
| False | Malformed 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