mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
Fix dummy decryption in debug mode
This commit is contained in:
parent
f0e55cebf7
commit
63cc02c08d
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,7 @@ namespace hw {
|
||||||
|
|
||||||
|
|
||||||
void decrypt(char* buf, size_t len) {
|
void decrypt(char* buf, size_t len) {
|
||||||
#ifdef IODUMMYCRYPT_HWDEVICE
|
#if defined(IODUMMYCRYPT_HWDEVICE) || defined(IONOCRYPT_HWDEVICE)
|
||||||
size_t i;
|
size_t i;
|
||||||
if (len == 32) {
|
if (len == 32) {
|
||||||
//view key?
|
//view key?
|
||||||
|
@ -86,11 +86,13 @@ namespace hw {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(IODUMMYCRYPT_HWDEVICE)
|
||||||
//std decrypt: XOR.55h
|
//std decrypt: XOR.55h
|
||||||
for (i = 0; i<len;i++) {
|
for (i = 0; i<len;i++) {
|
||||||
buf[i] ^= 0x55;
|
buf[i] ^= 0x55;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
crypto::key_derivation decrypt(const crypto::key_derivation &derivation) {
|
crypto::key_derivation decrypt(const crypto::key_derivation &derivation) {
|
||||||
|
|
Loading…
Reference in a new issue