整理依赖

This commit is contained in:
cheney
2026-05-29 17:00:56 +08:00
parent d1c8201f98
commit 1439f4aa63
2 changed files with 11 additions and 64 deletions
+5 -6
View File
@@ -2,6 +2,7 @@ package cmbpoc;
import com.sunyard.proto.Util;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import racal.sunyard.main.SydApi4j;
@@ -53,18 +54,16 @@ public class FunctionTest {
@Test
public void SYD_SM2_Sign(){
this.api.SYD_SM2_Sign_HA(1, privateKey, publicKey, orgData);
}
@Test
public void SYD_SM2_Verify(){
this.api.SYD_SM2_Verify_HA(1, publicKey, orgData, sign);
}
@Test
public void SYD_SM2_Encrypt(){
this.api.SM2Decrypt();
byte[] enData = this.api.SYD_SM2_Encrypt(publicKey, orgData);
byte[] deData = this.api.SYD_SM2Decrypt(privateKey, enData);
Assert.assertArrayEquals(enData, deData);
}