mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix SM2.getDHex() Method
This commit is contained in:
parent
2b3e72f924
commit
a920b9b0aa
@ -531,7 +531,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
|
|||||||
* @since 5.7.17
|
* @since 5.7.17
|
||||||
*/
|
*/
|
||||||
public String getDHex() {
|
public String getDHex() {
|
||||||
return getDBigInteger().toString(16);
|
return String.format("%064x", new BigInteger(1, getD()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user