Interface ProtectVerifier
- All Known Implementing Classes:
GMProtectVerifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
实现该接口 用于实现 GM/T 0099 7.4.6 校验流程
中签名方案验证内容
- Since:
- 2021-08-24 19:34:22
- Author:
- 权观宇
-
Method Summary
Modifier and TypeMethodDescriptionbooleandigestThenVerify(Path ofdEntriesXmlPath, byte[] signedValue) 根据 GM/T 0099 OFD完整性保护协议 执行完整性保护 7.4.6
-
Method Details
-
digestThenVerify
boolean digestThenVerify(Path ofdEntriesXmlPath, byte[] signedValue) throws GeneralSecurityException, IOException 根据 GM/T 0099 OFD完整性保护协议 执行完整性保护 7.4.6b) 根据签名方案,调用杂凑算法计算完整性保护文件得到杂凑值 c) 读取签名值文件,进行签名验证
- Parameters:
ofdEntriesXmlPath- 防夹带文件路径signedValue- 待验证的签名值,数据结构参照 《GM/T 0099 2020》 7.4.3 密码算法要求- Returns:
- 签名值验证结果
- Throws:
GeneralSecurityException- 安全计算异常IOException- IO读写异常
-