THPDFSignatureVerifyStatus 类型
报告已加载 CMS 签名的验证结果
声明
THPDFSignatureVerifyStatus= (
svNotVerified, // parsed only; VerifyLoadedSignature not run yet
svValid, // digest matches and signature verifies
svDigestMismatch, // document bytes changed after signing
svSignatureInvalid, // cryptographic signature check failed
svUnsupportedAlgorithm, // unknown key, curve, or digest algorithm
svMalformed, // CMS structure could not be parsed
svSourceUnavailable, // no source bytes available to hash
svCryptoProviderError, // native cryptographic provider failed
svInvalidByteRange, // /ByteRange is malformed, overlapping, or out of bounds
svDigestAlgorithmMismatch, // CMS digest algorithm identifiers are inconsistent
svSignaturePolicyMismatch // required or pinned signature policy did not match
);
单元
HPDFSignVerify
值
| 值 | 含义 |
|---|---|
svNotVerified |
仅解析了签名;VerifyLoadedSignature 尚未运行 |
svValid |
摘要一致且签名验证通过 |
svDigestMismatch |
签名之后文档字节发生了变化 |
svSignatureInvalid |
密码学签名检查失败 |
svUnsupportedAlgorithm |
遇到未知的密钥、曲线或摘要算法 |
svMalformed |
CMS 结构无法解析 |
svSourceUnavailable |
没有可用于哈希的源字节 |
svCryptoProviderError |
原生加密提供程序失败 |
svInvalidByteRange |
/ByteRange 条目格式错误、重叠或越界 |
svDigestAlgorithmMismatch |
CMS 摘要算法标识符不一致 |
svSignaturePolicyMismatch |
必需或固定的签名策略不匹配 |
使用说明
svValid表示文档字节与内嵌证书密钥所签内容一致;证书链与信任验证不在其范围内- 验证方法按签名返回该状态,批量验证还会额外报告总体状态