diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-11-25 19:49:22 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-11-25 19:49:22 +0200 |
| commit | 7dc58410e5883cdf73e45eee2ba8d5eb3b30d25f (patch) | |
| tree | 3352ef09ae125ba278881df1cb346a32a0b4e148 /src/cryptonote_basic/cryptonote_format_utils.cpp | |
| parent | 539f511eb1991423ca38ad5da8977de36cce8481 (diff) | |
| parent | 54a4c1cbf7a4a76c270729be6ddccbf45f4637d0 (diff) | |
| download | monzero-core-7dc58410e5883cdf73e45eee2ba8d5eb3b30d25f.tar.gz monzero-core-7dc58410e5883cdf73e45eee2ba8d5eb3b30d25f.tar.xz monzero-core-7dc58410e5883cdf73e45eee2ba8d5eb3b30d25f.zip | |
Merge pull request #2784
54a4c1cb cryptonote: do not overwrite const data (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.cpp')
| -rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index 1c28ca4d8..3c760493f 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -994,7 +994,7 @@ namespace cryptonote block_hashes_cached = block_hashes_cached_count; } //--------------------------------------------------------------- - crypto::secret_key encrypt_key(const crypto::secret_key &key, const std::string &passphrase) + crypto::secret_key encrypt_key(crypto::secret_key key, const std::string &passphrase) { crypto::hash hash; crypto::cn_slow_hash(passphrase.data(), passphrase.size(), hash); @@ -1002,7 +1002,7 @@ namespace cryptonote return key; } //--------------------------------------------------------------- - crypto::secret_key decrypt_key(const crypto::secret_key &key, const std::string &passphrase) + crypto::secret_key decrypt_key(crypto::secret_key key, const std::string &passphrase) { crypto::hash hash; crypto::cn_slow_hash(passphrase.data(), passphrase.size(), hash); |
