GetPAdESSignatureValueHashHex

Security and Signatures

Description

Loads the named signature field, locates the CMS SignerInfo signatureValue, hashes it with the configured digest algorithm, and returns the hex digest for TSA submission.

Syntax

Delphi

Function GetPAdESSignatureValueHashHex(STSProcessID: Integer): AnsiString;

Parameters

STSProcessIDValue returned by one of the NewPAdESSignatureTimeStampProcessFrom* functions.

Returns

Returns the signatureValue hash as a hex string. Returns an empty string when the process id is invalid, the PDF cannot be parsed, or the field/signature value cannot be located.

Remarks

This call also caches the source PDF bytes and original CMS bytes for the subsequent GetPAdESSignatureCMSBytes and EndPAdESSignatureTimeStampProcessTo* calls.

See also

GetPAdESSignatureCMSBytes, BuildPAdESSignatureTimeStampAttribute