BuildPAdESSignatureTimeStampAttribute

Security and Signatures

Description

Wraps a TSA-issued TimeStampToken DER blob in the CMS Attribute structure for id-aa-signatureTimeStampToken.

Syntax

Delphi

Function BuildPAdESSignatureTimeStampAttribute(Const TimeStampTokenDER: AnsiString): AnsiString;

Parameters

TimeStampTokenDERDER-encoded RFC 3161 TimeStampToken returned by the TSA.

Returns

Returns the DER-encoded CMS Attribute SEQUENCE that a CMS library can attach to SignerInfo.unsignedAttrs.

Remarks

This helper is stateless and does not require an STSProcessID.

See also

GetPAdESSignatureValueHashHex, SetPAdESSignatureCMSBytes