1
0
Fork 0
mirror of https://git.wownero.com/wownero/wownero.git synced 2024-08-15 01:03:23 +00:00

wallet2: remove redundant chacha key generation in store_keys

This commit is contained in:
stoffu 2018-11-07 10:47:10 +09:00
parent a9e03ebc6a
commit 1a4d160311
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012

View file

@ -3144,7 +3144,6 @@ bool wallet2::store_keys(const std::string& keys_file_name, const epee::wipeable
account_data = buffer.GetString();
// Encrypt the entire JSON object.
crypto::generate_chacha_key(password.data(), password.size(), key, m_kdf_rounds);
std::string cipher;
cipher.resize(account_data.size());
keys_file_data.iv = crypto::rand<crypto::chacha_iv>();