accounts/keystore: zeroize decrypted key in Update() after use

This commit is contained in:
phrwlk 2025-11-03 12:12:55 +02:00 committed by GitHub
parent 18a902799e
commit b762cbeeb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -477,6 +477,7 @@ func (ks *KeyStore) Update(a accounts.Account, passphrase, newPassphrase string)
if err != nil {
return err
}
defer zeroKey(key.PrivateKey)
return ks.storage.StoreKey(a.URL.Path, key, newPassphrase)
}