删除控制台输出
This commit is contained in:
@@ -127,9 +127,10 @@ interface SydASYMApi {
|
||||
* 输入的sm2密文结构为C1C2C3格式
|
||||
* @param userId 使用者的 ID,最大长度为 16 位数字,右对齐。
|
||||
* @param enData 加密的数据,base64 编码。
|
||||
* @param keyType 密钥类型,0:签名证书, 1:加密证书。
|
||||
* @return 明文数据。
|
||||
*/
|
||||
byte[] SM2DecryptOrder(String userId, String enData);
|
||||
byte[] SM2DecryptOrder(String userId, String enData, int keyType);
|
||||
|
||||
/**
|
||||
* 用指定的 RSA 私钥对指定的密文数据进行加密。
|
||||
|
||||
@@ -4150,10 +4150,11 @@ public class SydApi4j implements SydApi {
|
||||
* 输入的sm2密文结构为C1C2C3格式
|
||||
* @param userId 使用者的 ID,最大长度为 16 位数字,右对齐。
|
||||
* @param enData 加密的数据,base64 编码。
|
||||
* @param keyType 密钥类型,0:签名证书, 1:加密证书。
|
||||
* @return 明文数据。
|
||||
*/
|
||||
@Override
|
||||
public byte[] SM2DecryptOrder(String userId, String enData) {
|
||||
public byte[] SM2DecryptOrder(String userId, String enData, int keyType) {
|
||||
//ProtocolRender render = pset.getProtocolReqRender("78");
|
||||
Proto78 proto = new Proto78();
|
||||
|
||||
@@ -4167,7 +4168,7 @@ public class SydApi4j implements SydApi {
|
||||
packet.put("header", sn.getSn().array());
|
||||
data.put("AlgorithmKey$option", 1);
|
||||
data.put("infoData", pOrgData);
|
||||
data.put("privateKeyTag", SYMUtil.genPrivateKeyMark(userId, SYMUtil.KT_ENCRYPT, "00000001"));
|
||||
data.put("privateKeyTag", SYMUtil.genPrivateKeyMark(userId, 0 == keyType ? "000" : "001", "00000001"));
|
||||
// 渲染发送
|
||||
ByteBuffer bb = proto.rend(packet);
|
||||
synchronized (this) {
|
||||
|
||||
Reference in New Issue
Block a user