mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
cert 初步测试通过
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user