diff options
| author | tobtoht <tob@featherwallet.org> | 2026-06-09 17:51:17 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-06-09 17:51:17 +0000 |
| commit | 966dc5cdf145525d3e69891938595229096dfdca (patch) | |
| tree | f9d6afb7a5061e806b23ad2c90c41b19efada501 | |
| parent | 1ed6b8183c798fe65df724d6ea7fdc3ba3ad20f7 (diff) | |
| parent | 00a444b1167119a8a6d5c133d8e32240249b76f9 (diff) | |
| download | monzero-core-966dc5cdf145525d3e69891938595229096dfdca.tar.gz monzero-core-966dc5cdf145525d3e69891938595229096dfdca.tar.xz monzero-core-966dc5cdf145525d3e69891938595229096dfdca.zip | |
Merge pull request #10708
00a444b Multisig tx builder: fix incomplete memory wipe (SChernykh)
| -rw-r--r-- | src/multisig/multisig_tx_builder_ringct.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multisig/multisig_tx_builder_ringct.cpp b/src/multisig/multisig_tx_builder_ringct.cpp index 33c0396dc..3220246ec 100644 --- a/src/multisig/multisig_tx_builder_ringct.cpp +++ b/src/multisig/multisig_tx_builder_ringct.cpp @@ -254,7 +254,7 @@ static void make_tx_secret_key_seed(const crypto::secret_key& tx_secret_key_entr rct::keyV hash_context; hash_context.reserve(2 + sources.size()); auto hash_context_wiper = epee::misc_utils::create_scope_leave_handler([&]{ - memwipe(hash_context.data(), hash_context.size()); + memwipe(hash_context.data(), hash_context.size() * sizeof(rct::key)); }); hash_context.emplace_back(); rct::cn_fast_hash(hash_context.back(), domain_separator.data(), domain_separator.size()); //domain sep @@ -282,7 +282,7 @@ static void make_tx_secret_keys(const crypto::secret_key& tx_secret_key_seed, rct::keyV hash_context; hash_context.resize(2); auto hash_context_wiper = epee::misc_utils::create_scope_leave_handler([&]{ - memwipe(hash_context.data(), hash_context.size()); + memwipe(hash_context.data(), hash_context.size() * sizeof(rct::key)); }); hash_context[0] = rct::sk2rct(tx_secret_key_seed); rct::cn_fast_hash(hash_context[1], domain_separator.data(), domain_separator.size()); |
