summaryrefslogtreecommitdiff
path: root/src/device
Commit message (Collapse)AuthorAgeFilesLines
* Fix computation of change address + Fix v11 forkcslashm2019-03-056-11/+66
| | | | | | | Always send TX public key when generating output destination keys: it may be an additional TX public key in case of subaddress; before we always use R. Fix the commitment mask generation: It must be delegated to device as it implies the amount key. Send MONERO_VERSION string in reset command to allow version compatibility check. Some enhancement of debug log.
* Add support for V10 protocol with BulletProofV2 and short amount.cslashm2019-02-141-13/+34
|
* Fix dummy decryption in debug modecslashm2019-02-141-1/+3
|
* fix log namespacecslashm2019-02-141-45/+45
|
* New scheme key destination contrfolcslashm2019-02-145-22/+223
| | | | Implies protocol version management.
* ringct: encode 8 byte amount, saving 24 bytes per outputmoneromooo-monero2019-02-125-14/+14
| | | | Found by knaccc
* device: fixed Ledger Nano S device selectionxiphon2018-10-182-6/+6
|
* Merge pull request #4535Riccardo Spagni2018-10-091-1/+1
| | | | c716a331 device: increase ledger timeout to 2 minutes (selsta)
* Merge pull request #4538Riccardo Spagni2018-10-091-6/+6
| | | | bd7b800f device_io_hid: fix DEFAULT_* type (too short) and init time (moneromooo-monero)
* Merge pull request #4532Riccardo Spagni2018-10-091-9/+16
| | | | 8f22e808 device: destroy device objects on exit (moneromooo-monero)
* Merge pull request #4527Riccardo Spagni2018-10-081-9/+0
| | | | c5a97315 Remove last traces of libpcsc-lite (moneromooo-monero)
* Revert "Merge pull request #4472"Riccardo Spagni2018-10-081-0/+7
| | | | This reverts commit b26ab0b5803af4ffe23de11a45e43877301a4902.
* Merge pull request #4472Riccardo Spagni2018-10-061-7/+0
| | | | 02d3ef7b blocks: use auto-generated .c files instead of 'LD -r -b binary' (xiphon)
* Merge pull request #4412Riccardo Spagni2018-09-252-2/+2
|\ | | | | | | 4d0a8db0 device: fix warnings about overridden functions (moneromooo-monero)
| * device: fix warnings about overridden functionsmoneromooo-monero2018-09-212-2/+2
| |
* | Replace USB-CCID (smartcard) by USB-HIDcslashm2018-09-2410-190/+578
|/ | | | | | Remove PCSC dependencies which is a bit hard (not user friendly) to install on linux and Mac Split Ledger logic and device IO
* query backing devicem2049r2018-09-193-3/+14
|
* hw_device: support for multiple devices added [for review]Dusan Klinec2018-09-142-22/+61
| | | | | | | - device name is a new wallet property - full device name is now a bit more structured so we can address particular device vendor + device path. Example: 'Ledger', 'Trezor:udp', 'Trezor:udp:127.0.0.1:21324', 'Trezor:bridge:usb01'. The part before ':' identifies HW device implementation, the optional part after ':' is device path to look for. - new --hw-device parameter added to the wallet, can name the hardware device - device reconnect added
* Add bulletproof supportcslashm2018-09-131-1/+1
|
* Bulletproof aggregated verification and testsmoneromooo-monero2018-09-111-1/+1
| | | | Also constrains bulletproofs to simple rct, for simplicity
* add and use constant time 32 byte equality functionmoneromooo-monero2018-08-231-1/+2
|
* crypto: make secret_key automatically mlockmoneromooo-monero2018-08-161-1/+1
|
* wallet: allow adjusting number of rounds for the key derivation functionstoffu2018-08-085-8/+8
|
* Merge pull request #4032luigi11112018-07-192-411/+60
|\ | | | | | | 87e158b device_ledger: factor the prologue code (moneromooo-monero)
| * device_ledger: factor the prologue codemoneromooo-monero2018-06-252-411/+60
| |
* | Merge pull request #4043Riccardo Spagni2018-07-033-14/+19
|\ \ | | | | | | | | | | | | | | | 34de7bc2 device_ledger: fix buffer underflow on bad data from device (moneromooo-monero) 41e9cab4 device: misc cleanup (moneromooo-monero) 3b4dec2d device_ledger: fix potential buffer overflow from bad size calc (moneromooo-monero)
| * | device_ledger: fix buffer underflow on bad data from devicemoneromooo-monero2018-06-231-0/+1
| | |
| * | device: misc cleanupmoneromooo-monero2018-06-233-12/+14
| | | | | | | | | | | | | | | | | | | | | use snprintf "just in case" where appropriate consistently use unsigned for temp values pass std::string by const ref rather than by value add length check (which can't happen in practice) for memcpy
| * | device_ledger: fix potential buffer overflow from bad size calcmoneromooo-monero2018-06-231-2/+4
| |/
* | Merge pull request #3977luigi11112018-06-251-1/+1
|\ \ | |/ |/| | | 0309615 device_ledger: fix bad memory access on connect error (moneromooo-monero)
| * device_ledger: fix bad memory access on connect errormoneromooo-monero2018-06-091-1/+1
| |
* | Fix PCSC compilation under windowscslashm2018-05-232-0/+14
|/ | | | PR3843 based on release-v0.12 => rebased on master
* device: add a one off override keyword where appropriatemoneromooo-monero2018-04-142-2/+2
|
* Fix sub-address tx scan.cslashm2018-04-125-0/+30
| | | | | | | | When additional keys was needed, the TX scan failed because the derivation data was always recomputed with the main tx_key and not the corresponding additional one. Moreover this patch avoid perf decreasing when not using HW device.
* Merge pull request #3511Riccardo Spagni2018-04-121-2/+6
|\ | | | | | | 0beb94f3 device: fix endianess dependence on subaddress secret key generation (moneromooo-monero)
| * device: fix endianess dependence on subaddress secret key generationmoneromooo-monero2018-03-281-2/+6
| | | | | | | | We now force little endianness
* | Add the possibility to export private view key for fast scan.cslashm2018-03-316-82/+156
| | | | | | | | | | | | On client startup the device asks for authorization to export the private view key. If user agree, the client hold the private view key allowing a fast blockchain scan. If the user does not agree, the blockchain scan is fully done via the device.
* | Change mutex lock model to avoid dead lock and ensure locks are always released.cslashm2018-03-315-385/+202
|/ | | | | | | Additional cosmetic fixes: move 'name' as protected remove unnecessary local var Fix debug log
* chacha: call prehashed version explicitly as generate_chacha_key_prehashedstoffu2018-03-141-2/+2
| | | | | | hash: add prehashed version cn_slow_hash_prehashed slow-hash: let cn_slow_hash take 4th parameter for deciding prehashed or not slow-hash: add support for prehashed version for the other 3 platforms
* keypair::generate: always require hw::device to avoid possible mistakestoffu2018-03-141-1/+1
|
* device: untangle cyclic depenencystoffu2018-03-145-51/+114
| | | | | | | | | | | | | | | | | | | | | | | | When #3303 was merged, a cyclic dependency chain was generated: libdevice <- libcncrypto <- libringct <- libdevice This was because libdevice needs access to a set of basic crypto operations implemented in libringct such as scalarmultBase(), while libringct also needs access to abstracted crypto operations implemented in libdevice such as ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct into libringct_basic and libringct, where the basic crypto ops previously in libringct are moved into libringct_basic. The cyclic dependency is now resolved thanks to this separation: libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct This eliminates the need for crypto_device.cpp and rctOps_device.cpp. Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and get_subaddress_secret_key() were previously implemented in libcryptonote_basic (cryptonote_format_utils.cpp) and were then called from hw::core::device_default, which is odd because libdevice is supposed to be independent of libcryptonote_basic. Therefore, those functions were moved to device_default.cpp.
* device: made function prototypes consistent with pre-#3303 codebasestoffu2018-03-145-46/+65
|
* Ledger HW Bug fixesCédric2018-03-128-92/+150
| | | | | | | | | | | | | | | | | | | | | | Fix the way the REAL mode is handle: Let create_transactions_2 and create_transactions_from construct the vector of transactions. Then iterate on it and resign. We just need to add 'outs' list in the TX struct for that. Fix default secret keys value when DEBUG_HWDEVICE mode is off The magic value (00...00 for view key and FF..FF for spend key) was not correctly set when DEBUG_HWDEVICE was off. Both was set to 00...00. Add sub-address info in ABP map in order to correctly display destination sub-address on device Fix DEBUG_HWDEVICE mode: - Fix compilation errors. - Fix control device init in ledger device. - Add more log. Fix sub addr control Fix debug Info
* device: remove dependency on readlinestoffu2018-03-072-7/+4
|
* Monero Cryptonight variants, and add one for v7moneromooo-monero2018-03-051-1/+1
| | | | | This is the first variant of many, with the intent to improve Monero's resistance to ASICs and encourage mining decentralization.
* Fix invalid device unique_ptr castMoroccanMalinois2018-03-042-3/+3
|
* Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm2018-03-0410-0/+3229
The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.