THotPDF.VerifyLoadedSignature

THotPDF

 

Top  Previous  Next

Verifies a specific loaded signature by index

 

Delphi syntax:

function VerifyLoadedSignature( SigIndex: Integer ): THPDFSignatureVerifyStatus; overload;

function VerifyLoadedSignature( SigIndex: Integer; Source: TStream ): THPDFSignatureVerifyStatus; overload;

function VerifyLoadedSignature( SigIndex: Integer; Source: TStream; out Info: THPDFSignatureInfo ): THPDFSignatureVerifyStatus; overload;

 

Description

Verifies a specific loaded signature by index/ByteRange against the document contents while preserving the caller's stream position

Supports RSA PKCS#1 v1.5, RSA-PSS with validated hash, MGF1, salt-length, and trailer parameters, and ECDSA P-256, P-384, and P-521 with SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-384, or SHA3-512

For ETSI.RFC3161 document timestamps, validates the token signature and binds its message imprint to the PDF /ByteRange; for a CMS signature-time-stamp attribute, binds the nested token to the parent signature value

A valid timestamp supplies the cryptographically protected SigningTime, while certificate-chain and trust-policy validation remain the caller's responsibility

Returns svInvalidByteRange for overlapping, out-of-bounds, truncated, or ambiguous signed ranges

Validates the digital signature against the document contents

 

See also: THotPDF