MAC 长度
This commit is contained in:
@@ -57,6 +57,12 @@ public class SydApiException extends RuntimeException{
|
||||
case 129:
|
||||
this.msg = "没有该指令";
|
||||
break;
|
||||
|
||||
case 0x8006 : {
|
||||
this.msg = "输入的数据格式错误";
|
||||
break;
|
||||
}
|
||||
|
||||
case 32770:
|
||||
this.msg = "签名验证错误(P7) ";
|
||||
break;
|
||||
|
||||
@@ -54,6 +54,8 @@ public interface SydCertApi {
|
||||
int nKeyTypes
|
||||
);
|
||||
|
||||
public String SM2GetPrivateKeyC(String privateKeyTag);
|
||||
|
||||
String SM2GetPublicKeyC_QX(
|
||||
int userId,
|
||||
int nKeyTypes
|
||||
|
||||
@@ -74,7 +74,6 @@ interface SydHashApi {
|
||||
public void MACCheck(int alg, int keyType, String AK, int fullMode, byte[] infoData, String mac);
|
||||
|
||||
public String calcPBOCMAC(int mode, int keyType, String key, byte[] data, int block, byte[] iv);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ interface SydAttachedSVApi {
|
||||
* @return 签名结果
|
||||
*/
|
||||
String SM2SignC(int flag, String privateKey, byte[] publicKey, byte[] orgData);
|
||||
|
||||
String SM2SignC(int flag, String pUserID, String privateKey, byte[] publicKey, byte[] orgData);
|
||||
/**
|
||||
* SM2 私钥签名
|
||||
* @param pUserID 使用者的 ID,最大长度为 16 位数字,右对齐。
|
||||
|
||||
Reference in New Issue
Block a user