整理依赖
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user