mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -49,6 +49,7 @@ import java.security.PrivateKey;
|
||||
import java.security.PublicKey;
|
||||
import java.security.spec.ECPublicKeySpec;
|
||||
import java.security.spec.KeySpec;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 椭圆曲线EC(Elliptic Curves)密钥参数相关工具类封装
|
||||
@@ -339,7 +340,9 @@ public class ECKeyUtil {
|
||||
if (null == d) {
|
||||
return null;
|
||||
}
|
||||
return toPrivateParams(BigIntegers.fromUnsignedByteArray(SecureUtil.decode(d)), domainParameters);
|
||||
return toPrivateParams(
|
||||
BigIntegers.fromUnsignedByteArray(Objects.requireNonNull(SecureUtil.decode(d))),
|
||||
domainParameters);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user