public class GBT35275Validate extends Object
b) 签名类型为数字签名且签名算法使用SM2时,签名值数据应符合 GB/T 35275 要求
数字签名验证容器
| Constructor and Description |
|---|
GBT35275Validate() |
| Modifier and Type | Method and Description |
|---|---|
static VerifyInfo |
validate(String alg,
byte[] tbsContent,
byte[] signedValue)
验证 GBT35275 SignedData数据
|
public static VerifyInfo validate(String alg, byte[] tbsContent, byte[] signedValue) throws GeneralSecurityException
alg - 算法tbsContent - 待签名数据原文,不需要提前计算摘要signedValue - 签名值DER编码GeneralSecurityException - 签名计算法错误Copyright © 2026. All rights reserved.