aboutsummaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorcslashm <cslashm@gmail.com>2019-02-08 16:11:10 +0100
committercslashm <cslashm@gmail.com>2019-02-08 17:02:55 +0100
commit63cc02c08dcdc88677f629cdfe78e9a690dfb7dc (patch)
tree35db489f64ad10d42283f6cbb9d955f5eb144543 /src/device
parentfix log namespace (diff)
downloadmonero-63cc02c08dcdc88677f629cdfe78e9a690dfb7dc.tar.xz
Fix dummy decryption in debug mode
Diffstat (limited to 'src/device')
-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) {