THPDFSignatureVerifyStatus Type
回報已載入 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表示文件位元組符合內嵌憑證金鑰簽出的內容;憑證鏈與信任驗證不在其範圍- 各驗證方法對每個簽章回傳此狀態,批次驗證會額外回報整體狀態