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 必需或固定的签名策略不匹配

使用说明

相关 API