Detach DN 反转问题
This commit is contained in:
parent
0af77f706a
commit
748571082b
@ -641,6 +641,7 @@ public class SydApi4j implements SydApi {
|
||||
byte[] dn = new byte[256];
|
||||
byte[] s = null;
|
||||
try {
|
||||
sCertDN = DnUtil.verifyDn( sCertDN );
|
||||
s = sCertDN.getBytes("GBK");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
@ -10561,6 +10562,7 @@ public class SydApi4j implements SydApi {
|
||||
}
|
||||
|
||||
public String attachedSignSoft(byte[] orgData, String sCertDN) throws UnsupportedEncodingException {
|
||||
sCertDN = DnUtil.verifyDn( sCertDN );
|
||||
String pk = this.GetDNPublicKey( SydApi.FOR_SIGN, sCertDN.getBytes("GBK") );
|
||||
try {
|
||||
byte[] hash = this.SM3Hash( pk, orgData );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user