save
This commit is contained in:
@@ -58,6 +58,12 @@ public class TestDemo {
|
||||
return signVerify;
|
||||
}
|
||||
|
||||
public static String sm3hash(SydApi4j api,String pk,String orgData) {
|
||||
byte[] hash = api.SM3Hash(pk, orgData.getBytes());
|
||||
System.out.println("hash计算:"+ Util.bytes2HexString(hash));
|
||||
return Util.bytes2HexString(hash);
|
||||
}
|
||||
|
||||
|
||||
public static void testAll(SydApi4j api, String certDn, String orgData) {
|
||||
byte[] nakedSign = api.SYD_NakedSignAll(2, orgData.getBytes(), certDn);
|
||||
@@ -120,6 +126,10 @@ public class TestDemo {
|
||||
case 8:
|
||||
snSignVer(api, certDn,orgData, signorenData);
|
||||
break;
|
||||
|
||||
case 9:
|
||||
sm3hash(api, certDn,orgData);
|
||||
break;
|
||||
case 0:
|
||||
testAll(api, certDn, orgData);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user