SetPAdESSignatureCMSBytes

Security and Signatures

Description

Stages augmented CMS bytes that already contain the caller-added signature-time-stamp unsigned attribute.

Syntax

Delphi

Function SetPAdESSignatureCMSBytes(STSProcessID: Integer; Const NewCMSBytes: AnsiString): Integer;

Parameters

STSProcessIDValue returned by one of the NewPAdESSignatureTimeStampProcessFrom* functions.
NewCMSBytesComplete replacement CMS DER bytes to splice into the original /Contents placeholder.

Returns

Returns 1 when the process exists; returns 0 for an invalid process id.

Remarks

The replacement CMS must fit the placeholder reserved during the original signature. Use SetSignProcessReserveContentsBytes before signing when a later timestamp augmentation is planned.

See also

SetSignProcessReserveContentsBytes, EndPAdESSignatureTimeStampProcessToFile