methodTstCustomMPSignedData.SignData
function SignData(aCert : iCertificate; aContent, aDest : TStream) : Boolean; overload;
Produces a CMS SignedData over aContent, writing the encoding to aDest. Pass the signer's iCertificate (which must carry a usable private key) in aCert, or pass nil to have OnAddSigner supply it. Returns False if no signer certificate was resolved or the format check failed. This is the signing (producer) side of the SignedData workflow.