THPDFCMSDigestConsistencyIssue Type
서명을 검증하는 동안 어떤 CMS 다이제스트 일관성 검사가 실패했는지 짚어줍니다
선언
THPDFCMSDigestConsistencyIssue= (
dciNone,
dciSignerDigestNotDeclared,
dciSignatureDigestMismatch,
dciAlgorithmProtectionDigestMismatch,
dciAlgorithmProtectionSignatureMismatch
);
유닛
HPDFSignVerify
값
| 값 | 목적 |
|---|---|
dciNone | 모든 다이제스트 일관성 검사를 통과했습니다 |
dciSignerDigestNotDeclared | 서명자의 signed 속성이 필수 message-digest 속성을 선언하지 않습니다 |
dciSignatureDigestMismatch | 서명된 콘텐츠의 계산된 다이제스트가 선언된 message digest나 서명 값과 일치하지 않습니다 |
dciAlgorithmProtectionDigestMismatch | 다이제스트가 algorithm-protection 속성이 보호하는 값과 일치하지 않습니다 |
dciAlgorithmProtectionSignatureMismatch | 서명 알고리즘이 algorithm-protection 속성이 고정한 알고리즘과 일치하지 않습니다 |
사용 참고 사항
dciNone이 아닌 값은svDigestAlgorithmMismatch서명 상태와 함께 오므로 호출자가 어떤 식별자가 어긋났는지 알 수 있습니다- 검사는 고정된 순서로 실행되고 처음 실패한 항목이 이기므로, 뒤의 불일치를 읽기 전에
dciSignerDigestNotDeclared부터 고치세요 - 같은 분석이 RFC 3161 타임스탬프 토큰 안에서도 실행되며 결과는
THPDFTimestampInfo.DigestConsistencyIssue에 나타납니다