cert 初步测试通过

This commit is contained in:
ghy committed 2021-03-06 20:13:13 +08:00
1 parent 262b2c5194
commit 86fcb65c3c
12 files changed
+266 -49

No files matched your search

@@ -22,9 +22,9 @@ import java.security.SecureRandom;
*/
public class Sm2PrivateKey implements PrivateKeyInterface {
Sm2PrivateKey(){}
public Sm2PrivateKey(){}
Sm2PrivateKey(byte[] d) {
public Sm2PrivateKey(byte[] d) {
if(d.length == 32 || d.length == 33)
privateKey = new ECPrivateKeyParameters(new BigInteger(d), Sm2Base.DOMAIN_PARAMS);
else {
@@ -35,7 +35,7 @@ public class Sm2PrivateKey implements PrivateKeyInterface {
}
}
}
Sm2PrivateKey(byte[] d, ECDomainParameters parameters){
public Sm2PrivateKey(byte[] d, ECDomainParameters parameters){
if(d.length == 32 || d.length == 33)
privateKey = new ECPrivateKeyParameters(new BigInteger(d), parameters);
else {