aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSChernykh <15806605+SChernykh@users.noreply.github.com>2026-06-03 20:14:09 +0200
committerSChernykh <15806605+SChernykh@users.noreply.github.com>2026-06-03 20:15:57 +0200
commit00a444b1167119a8a6d5c133d8e32240249b76f9 (patch)
tree594dcfd9e7599541cc1f3b44cfe2c1a0bec6ff25
parent8a1de602f0a049d85d6f2c7a231d90b3c9cb310e (diff)
downloadmonzero-core-00a444b1167119a8a6d5c133d8e32240249b76f9.tar.gz
monzero-core-00a444b1167119a8a6d5c133d8e32240249b76f9.tar.xz
monzero-core-00a444b1167119a8a6d5c133d8e32240249b76f9.zip
Multisig tx builder: fix incomplete memory wipe
-rw-r--r--src/multisig/multisig_tx_builder_ringct.cpp4
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());