fix:删除证书
This commit is contained in:
parent
e4020b1bbc
commit
e2c8695f47
@ -2148,7 +2148,7 @@ public class SydApi4j implements SydApi {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
System.arraycopy(s, 0, dn, 0, s.length);
|
||||
System.arraycopy(s, 0, dnData, 0, s.length);
|
||||
|
||||
// 填充数据
|
||||
HashMap<String, Object> packet = new HashMap<String, Object>();
|
||||
|
||||
@ -23,7 +23,7 @@ public class Test4NongxinCW {
|
||||
|
||||
private SydApi4j api;
|
||||
|
||||
final String SM2dn = "1C=CN,ST=zz,L=zz,O=zzz,CN=zzzzz";
|
||||
final String SM2dn = "C=CN,ST=zz,L=zz,O=zzz,CN=zzzzz";
|
||||
|
||||
byte[] orgData = new byte[100];
|
||||
|
||||
@ -110,7 +110,7 @@ public class Test4NongxinCW {
|
||||
// orgData = Hex.decode("80a370b809e8a46ba51211a35d6f0180fea32b4acc97916bc9c517ea6651134c");
|
||||
// byte[] nakedSign1 = api.SYD_NakedSign(SM2dn, (byte[])null, orgData);
|
||||
// System.out.println("SM2签名:"+ Util.bytes2HexString(nakedSign1));
|
||||
orgData = new byte[1024];
|
||||
orgData = new byte[4096];
|
||||
//裸签
|
||||
byte[] nakedSign = api.SYD_NakedSign(orgData,SM2dn);
|
||||
System.out.println("SM2签名:"+ Util.bytes2HexString(nakedSign));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user