GetPAdESSignatureValueHashHex
Security and Signatures
Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)
Description
Extracts the selected CMS signer signatureValue and returns its message imprint using the algorithm configured by SetPAdESSignatureTimeStampDigestAlgorithm
The returned uppercase hexadecimal value is the imprint submitted to the TSA for an RFC 3161 signature timestamp request
The call also prepares and caches the source PDF and original CMS for SetPAdESSignatureTimeStampToken and the final EndPAdESSignatureTimeStampProcessTo* operation
Syntax
Delphi
Function TPDFlib.GetPAdESSignatureValueHashHex(
STSProcessID: Integer): AnsiString; Virtual;ActiveX
Function PDFlib::GetPAdESSignatureValueHashHex(STSProcessID As Long) As StringDLL
const wchar_t* DLGetPAdESSignatureValueHashHex(int InstanceID, int STSProcessID);
Parameters
| STSProcessID | Signature timestamp process handle returned by one of the NewPAdESSignatureTimeStampProcessFrom* functions |
|---|
Return values
The SHA-1, SHA-256, SHA-384, or SHA-512 imprint as configured, or an empty string when preparation fails
See also
SetPAdESSignatureTimeStampDigestAlgorithm, SetPAdESSignatureTimeStampToken