性能测试代码
This commit is contained in:
@@ -19,7 +19,7 @@ public class FunctionTest {
|
||||
private byte[] orgData = new byte[1024];
|
||||
private byte[] orgData2K = new byte[ 2 * 1024 ];
|
||||
private byte[] orgData2M = new byte[ 2 * 1024 * 1024 ];
|
||||
private byte[] orgData10M = new byte[ 4 * 1024 * 1024 - 1024];
|
||||
private byte[] orgData10M = new byte[ 10 * 1024 * 1024 ];
|
||||
private String sign;
|
||||
|
||||
@Before
|
||||
@@ -130,8 +130,8 @@ public class FunctionTest {
|
||||
public void SYD_SM2_Encrypt_10M(){
|
||||
byte[] enData = this.api.SYD_SM2Encrypt(publicKey4Ende, orgData10M);
|
||||
System.out.println("密文=" + Util.bytes2HexString(enData));
|
||||
byte[] deData = this.api.SYD_SM2Decrypt(privateKey4Ende, enData);
|
||||
Assert.assertArrayEquals(orgData10M, deData);
|
||||
// byte[] deData = this.api.SYD_SM2Decrypt(privateKey4Ende, enData);
|
||||
// Assert.assertArrayEquals(orgData10M, deData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user