THotPDF.VerifyLoadedSignatureWithOptions
Verifies one loaded CMS signature with a caller-selected provider and modern algorithm options
声明
function VerifyLoadedSignatureWithOptions(SigIndex: Integer;
Source: TStream; const Options: THPDFCMSVerifyOptions;
out Info: THPDFSignatureInfo): THPDFSignatureVerifyStatus;
Options.SignatureProvider overrides the default platform provider and Options.OpenSSLLibraryPath selects an OpenSSL 3 library for Ed25519 or Ed448 verification
Options.AllowMLDSA is additionally constrained by LoadedDocumentDeclaresMLDSAExtension and cannot enable ML-DSA for an undeclared loaded document
CMS 算法标识不一致时,会在源哈希或提供程序分发之前返回 svDigestAlgorithmMismatch,确切原因记在 Info.DigestConsistencyIssue,签名者摘要 OID 记在 Info.DigestAlgorithmOID
被检查字段、问题优先级、时间戳传播、验证报告和 JSON 名称见 CMS digest-algorithm consistency