aboutsummaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-06 08:41:02 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-06 08:41:02 +0200
commitc102c49da5015592d2a2fedf0ae348495ec382df (patch)
treeba6f9a6ccc7e9d112ac2e305eac0160da2bdcbdf /src/device
parentMerge pull request #3261 (diff)
parenttweaks to the monerov1 cryptonight algorithm (diff)
downloadmonero-c102c49da5015592d2a2fedf0ae348495ec382df.tar.xz
Merge pull request #3253
e136bc6b tweaks to the monerov1 cryptonight algorithm (Lee Clagett) d58c9ec9 slow-hash: optimized version (SChernykh) 608fd6f1 Monero Cryptonight variants, and add one for v7 (moneromooo-monero)
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_ledger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp
index cede834a1..571d42724 100644
--- a/src/device/device_ledger.cpp
+++ b/src/device/device_ledger.cpp
@@ -511,7 +511,7 @@ namespace hw {
char prekey[200];
memmove(prekey, &this->buffer_recv[0], 200);
- crypto::generate_chacha_key(&prekey[0], sizeof(prekey), key, true);
+ crypto::generate_chacha_key(&prekey[0], sizeof(prekey), key, 0, true);
#ifdef DEBUG_HWDEVICE
hw::ledger::check32("generate_chacha_key", "key", (char*)key_x.data(), (char*)key.data());