diff options
| author | cslashm <cslashm@gmail.com> | 2019-02-08 16:11:10 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-14 14:44:03 +0000 |
| commit | 823b38bcabd30aeb37403ca727c876216b043901 (patch) | |
| tree | 86f9042e4fe01e7dfd6521da2adaf062854e39c4 /src/device/log.cpp | |
| parent | 377de05001476750315895ed22860ac596e767a7 (diff) | |
| download | monzero-core-823b38bcabd30aeb37403ca727c876216b043901.tar.gz monzero-core-823b38bcabd30aeb37403ca727c876216b043901.tar.xz monzero-core-823b38bcabd30aeb37403ca727c876216b043901.zip | |
Fix dummy decryption in debug mode
Diffstat (limited to 'src/device/log.cpp')
| -rw-r--r-- | src/device/log.cpp | 4 |
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) { |
