HPDFCMSBuildSignedDataWithProvider

Builds detached CMS SignedData while keeping private-key operations inside a caller-selected signature provider

声明

function HPDFCMSBuildSignedDataWithProvider(const CertificateDER,
  DocSHA256: TBytes; Provider: THPDFSignatureProvider;
  const KeyIdentifier: AnsiString;
  const Options: THPDFCMSSignOptions): TBytes;

DocDigest 必须与 Options.DigestAlgorithm 选择的长度匹配,且 Provider 必须声明支持 spcSign

The request input is the SHA-256 digest of the DER signed-attribute set and includes the selected RSA scheme, PSS salt length, certificate, key identifier, and a unique operation identifier