mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Merge pull request #4816
1a4d1603
wallet2: remove redundant chacha key generation in store_keys (stoffu)
This commit is contained in:
commit
cc1ea0b651
1 changed files with 0 additions and 1 deletions
|
@ -3145,7 +3145,6 @@ bool wallet2::store_keys(const std::string& keys_file_name, const epee::wipeable
|
||||||
account_data = buffer.GetString();
|
account_data = buffer.GetString();
|
||||||
|
|
||||||
// Encrypt the entire JSON object.
|
// Encrypt the entire JSON object.
|
||||||
crypto::generate_chacha_key(password.data(), password.size(), key, m_kdf_rounds);
|
|
||||||
std::string cipher;
|
std::string cipher;
|
||||||
cipher.resize(account_data.size());
|
cipher.resize(account_data.size());
|
||||||
keys_file_data.iv = crypto::rand<crypto::chacha_iv>();
|
keys_file_data.iv = crypto::rand<crypto::chacha_iv>();
|
||||||
|
|
Loading…
Reference in a new issue