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[] dn = new byte[256];
|
||||||
byte[] s = null;
|
byte[] s = null;
|
||||||
try {
|
try {
|
||||||
|
sCertDN = DnUtil.verifyDn( sCertDN );
|
||||||
s = sCertDN.getBytes("GBK");
|
s = sCertDN.getBytes("GBK");
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -10561,6 +10562,7 @@ public class SydApi4j implements SydApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String attachedSignSoft(byte[] orgData, String sCertDN) throws UnsupportedEncodingException {
|
public String attachedSignSoft(byte[] orgData, String sCertDN) throws UnsupportedEncodingException {
|
||||||
|
sCertDN = DnUtil.verifyDn( sCertDN );
|
||||||
String pk = this.GetDNPublicKey( SydApi.FOR_SIGN, sCertDN.getBytes("GBK") );
|
String pk = this.GetDNPublicKey( SydApi.FOR_SIGN, sCertDN.getBytes("GBK") );
|
||||||
try {
|
try {
|
||||||
byte[] hash = this.SM3Hash( pk, orgData );
|
byte[] hash = this.SM3Hash( pk, orgData );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user