MAC 长度

This commit is contained in:
cheney
2022-05-26 14:59:34 +08:00
parent 6d587f37d1
commit 784d44e3de
6 changed files with 26 additions and 44 deletions
@@ -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);
}
+1 -1
View File
@@ -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 位数字,右对齐。