aboutsummaryrefslogtreecommitdiff
path: root/src/device/log.cpp
diff options
context:
space:
mode:
authorcslashm <cslashm@gmail.com>2019-02-08 16:11:10 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-14 14:44:03 +0000
commit823b38bcabd30aeb37403ca727c876216b043901 (patch)
tree86f9042e4fe01e7dfd6521da2adaf062854e39c4 /src/device/log.cpp
parentfix log namespace (diff)
downloadmonero-823b38bcabd30aeb37403ca727c876216b043901.tar.xz
Fix dummy decryption in debug mode
Diffstat (limited to '')
-rw-r--r--src/device/log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/log.cpp b/src/device/log.cpp
index c9d3b551b..87505798b 100644
--- a/src/device/log.cpp
+++ b/src/device/log.cpp
@@ -66,7 +66,7 @@ namespace hw {
void decrypt(char* buf, size_t len) {
- #ifdef IODUMMYCRYPT_HWDEVICE
+ #if defined(IODUMMYCRYPT_HWDEVICE) || defined(IONOCRYPT_HWDEVICE)
size_t i;
if (len == 32) {
//view key?
@@ -86,11 +86,13 @@ namespace hw {
return;
}
}
+ #if defined(IODUMMYCRYPT_HWDEVICE)
//std decrypt: XOR.55h
for (i = 0; i<len;i++) {
buf[i] ^= 0x55;
}
#endif
+ #endif
}
crypto::key_derivation decrypt(const crypto::key_derivation &derivation) {