Interface ProtectSigner
- All Known Implementing Classes:
GMProtectSigner
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
用于完整性保护协议的签名实现
- Since:
- 2021-08-17 19:47:04
- Author:
- 权观宇
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]digestThenSign(Path tbs) 根据 GM/T 0099 OFD完整性保护协议 执行完整性保护 7.4.3 中的 c) d) 步骤
-
Method Details
-
digestThenSign
根据 GM/T 0099 OFD完整性保护协议 执行完整性保护 7.4.3 中的 c) d) 步骤c) 根据签名方案,计算完整性保护文件的杂凑值; d) 根据签名方案,使用版式文件合成者的签名私钥对杂凑值进行数字签名;
- Parameters:
tbs- 待签名文件路径- Returns:
- 签名值应符合“GB/T 35275”标准
- Throws:
GeneralSecurityException- 安全计算异常IOException- IO读写异常
-