Add function "attachedSignC" for customized

This commit is contained in:
cheney
2022-06-22 10:07:50 +08:00
parent b5332438f4
commit 6bd2cf1197
3 changed files with 42 additions and 0 deletions
@@ -178,6 +178,7 @@ interface SydAttachedSVApi {
* 符合PKCS7标准的签名结果
*/
String attachedSign(byte[] orgData, String sCertDN);
byte[] attachedSignC(byte[] orgData, String sCertDN);
/**
* 带公钥证书与原始数据的数字签名验签(遵循 PKCS#7)
@@ -10405,6 +10405,10 @@ public class SydApi4j implements SydApi {
// retWrap.put( "authenCode", authenCode.getBytes() ); //认证码
}
public byte[] attachedSignC(byte[] orgData, String sCertDN){
String sign = attachedSign(orgData, sCertDN);
return sign.getBytes();
}
/**
* 带公钥证书与原始数据的数字签名(遵循 PKCS#7)