THPDFCMSDigestConsistencyIssue Type
指出驗證簽章時是哪一項 CMS 摘要一致性檢查失敗
宣告
THPDFCMSDigestConsistencyIssue= (
dciNone,
dciSignerDigestNotDeclared,
dciSignatureDigestMismatch,
dciAlgorithmProtectionDigestMismatch,
dciAlgorithmProtectionSignatureMismatch
);
單元
HPDFSignVerify
值
| 值 | 用途 |
|---|---|
dciNone | 所有摘要一致性檢查都通過 |
dciSignerDigestNotDeclared | 簽署者的已簽署屬性未宣告必要的訊息摘要屬性 |
dciSignatureDigestMismatch | 已簽署內容的計算摘要與宣告的訊息摘要或簽章值不符 |
dciAlgorithmProtectionDigestMismatch | 摘要與 algorithm-protection 屬性所保護的值不符 |
dciAlgorithmProtectionSignatureMismatch | 簽章演算法與 algorithm-protection 屬性釘選的演算法不符 |
使用說明
- 簽章狀態為
svDigestAlgorithmMismatch時會伴隨dciNone以外的值,讓呼叫端分辨是哪個識別項不一致 - 檢查按固定順序執行,以第一個失敗項為準,因此先解決
dciSignerDigestNotDeclared再解讀後續不一致 - 相同的分析也在 RFC 3161 時間戳記權杖內執行,結果呈現在
THPDFTimestampInfo.DigestConsistencyIssue上