mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +00:00
accounts/keystore: use min/max/clear from go1.21 (#29307)
This commit is contained in:
parent
30dc0f47c9
commit
dfc0f112b8
1 changed files with 1 additions and 3 deletions
|
|
@ -511,7 +511,5 @@ func (ks *KeyStore) isUpdating() bool {
|
||||||
// zeroKey zeroes a private key in memory.
|
// zeroKey zeroes a private key in memory.
|
||||||
func zeroKey(k *ecdsa.PrivateKey) {
|
func zeroKey(k *ecdsa.PrivateKey) {
|
||||||
b := k.D.Bits()
|
b := k.D.Bits()
|
||||||
for i := range b {
|
clear(b)
|
||||||
b[i] = 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue