diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-07-27 16:56:37 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-07-27 16:56:37 -0400 |
commit | 69e714c749611d39c0eb80dfe11a9e8b5b85d105 (patch) | |
tree | b245f0e6c73729adbbd8e17fd5ca82766ca89015 /src | |
parent | Merge pull request #7744 (diff) | |
parent | ledger: don't lock for software device (diff) | |
download | monero-69e714c749611d39c0eb80dfe11a9e8b5b85d105.tar.xz |
Merge pull request #7745
d52d21b ledger: don't lock for software device (tobtoht)
Diffstat (limited to 'src')
-rw-r--r-- | src/device/device_ledger.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index a8ca16b73..5caad3a1a 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -684,7 +684,6 @@ namespace hw { /* ======================================================================= */ bool device_ledger::derive_subaddress_public_key(const crypto::public_key &pub, const crypto::key_derivation &derivation, const std::size_t output_index, crypto::public_key &derived_pub){ - AUTO_LOCK_CMD(); #ifdef DEBUG_HWDEVICE const crypto::public_key pub_x = pub; crypto::key_derivation derivation_x; @@ -708,7 +707,7 @@ namespace hw { MDEBUG( "derive_subaddress_public_key : PARSE mode with known viewkey"); crypto::derive_subaddress_public_key(pub, derivation, output_index,derived_pub); } else { - + AUTO_LOCK_CMD(); int offset = set_command_header_noopt(INS_DERIVE_SUBADDRESS_PUBLIC_KEY); //pub memmove(this->buffer_send+offset, pub.data, 32); @@ -1048,7 +1047,6 @@ namespace hw { } bool device_ledger::generate_key_derivation(const crypto::public_key &pub, const crypto::secret_key &sec, crypto::key_derivation &derivation) { - AUTO_LOCK_CMD(); bool r = false; #ifdef DEBUG_HWDEVICE @@ -1069,6 +1067,7 @@ namespace hw { assert(is_fake_view_key(sec)); r = crypto::generate_key_derivation(pub, this->viewkey, derivation); } else { + AUTO_LOCK_CMD(); int offset = set_command_header_noopt(INS_GEN_KEY_DERIVATION); //pub memmove(this->buffer_send+offset, pub.data, 32); |