mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-08 03:08:51 +00:00
Fix dummy decryption in debug mode
This commit is contained in:
parent
d56c1d68f9
commit
e1b8e3d7b4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user