diff options
author | stoffu <stoffu@protonmail.ch> | 2018-11-07 10:47:10 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-11-07 10:47:10 +0900 |
commit | 1a4d160311df8b3aaf0e33fe0c3b77f1862c395e (patch) | |
tree | 46ae559af4420a50c90e35953aa21c30634e0d67 | |
parent | Merge pull request #4809 (diff) | |
download | monero-1a4d160311df8b3aaf0e33fe0c3b77f1862c395e.tar.xz |
wallet2: remove redundant chacha key generation in store_keys
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 58ed5dcad..df947712e 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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>(); |