SetPAdESSignatureTimeStampDigestAlgorithm

Security and Signatures

Description

Selects the digest algorithm used to hash the signer signatureValue before the caller sends it to a TSA.

Syntax

Delphi

Function SetPAdESSignatureTimeStampDigestAlgorithm(STSProcessID, DigestAlgorithm: Integer): Integer;

Parameters

STSProcessIDValue returned by one of the NewPAdESSignatureTimeStampProcessFrom* functions.
DigestAlgorithmDigest code: 0 auto, 1 SHA-1, 2 SHA-256, 3 SHA-384, 4 SHA-512.

Returns

Returns 1 when the code and process id are accepted; returns 0 otherwise.

See also

GetPAdESSignatureValueHashHex