diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:35:11 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:35:12 +0200 |
commit | b8ab510f238e5a4b9907ea09ed0f364b34ab1ae5 (patch) | |
tree | 25661fc3125132dff3f48a4f1aa19676f8e74c0e /src/device/log.hpp | |
parent | Merge pull request #5349 (diff) | |
parent | Add get_tx_proof support, needed for new sanity check (diff) | |
download | monero-b8ab510f238e5a4b9907ea09ed0f364b34ab1ae5.tar.xz |
Merge pull request #5332
7c440915 Add get_tx_proof support, needed for new sanity check (cslashm)
98fdcb2a Add support for V11 protocol with BulletProofV2 and short amount. New scheme key destination contrfol Fix dummy decryption in debug mode (cslashm)
3a981a33 Add application version compatibility check. (cslashm)
Diffstat (limited to '')
-rw-r--r-- | src/device/log.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/device/log.hpp b/src/device/log.hpp index fb7ba1fb0..bfe6e9edc 100644 --- a/src/device/log.hpp +++ b/src/device/log.hpp @@ -40,6 +40,19 @@ namespace hw { + /* Note about debug: + * To debug Device you can def the following : + * #define DEBUG_HWDEVICE + * Activate debug mechanism: + * - Add more trace + * - All computation done by device are checked by default device. + * Required IODUMMYCRYPT_HWDEVICE or IONOCRYPT_HWDEVICE for fully working + * #define IODUMMYCRYPT_HWDEVICE 1 + * - It assumes sensitive data encryption is is off on device side. a XOR with 0x55. This allow Ledger Class to make check on clear value + * #define IONOCRYPT_HWDEVICE 1 + * - It assumes sensitive data encryption is off on device side. + */ + void buffer_to_str(char *to_buff, size_t to_len, const char *buff, size_t len) ; void log_hexbuffer(const std::string &msg, const char* buff, size_t len); void log_message(const std::string &msg, const std::string &info ); |