1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-14 03:49:25 +00:00
trezor-firmware/firmware
Jochen Hoenicke 4805f27e8c Fix checking change address
There was a signed/unsigned problem: size_t is unsigned, but we use
-1 to indicate mismatch.  The problem was that when checking the input
address path, it still did this unintentionally when a mismatch was
detected, forbidding to sign with mismatched inputs, even when there
is no change address.

We now use 1 for mismatch.  Also we don't allow change address anymore
if the inputs have a path of length 1.  This simplifies the code a bit.
2017-11-03 19:12:41 +01:00
..
protob nem2: Handle Importance Transfer transactions 2017-10-07 22:07:56 +01:00
u2f add set -e to shell scripts 2016-07-03 13:54:32 +02:00
.gitignore nem_mosaics: Remove generated files 2017-10-09 17:47:56 +01:00
ChangeLog changelog: add 1.5.2 2017-08-16 13:59:40 +02:00
coins-gen.py Have coins.h and coins.c generated at build time (#220) 2017-09-30 11:09:11 +02:00
coins.c Have coins.h and coins.c generated at build time (#220) 2017-09-30 11:09:11 +02:00
coins.h Have coins.h and coins.c generated at build time (#220) 2017-09-30 11:09:11 +02:00
coins.json Have coins.h and coins.c generated at build time (#220) 2017-09-30 11:09:11 +02:00
crypto.c Fix multisig for BCC 2017-07-30 22:58:26 +02:00
crypto.h segwit support for SignMessage, VerifyMessage 2017-07-25 19:32:20 +02:00
debug.c use C99 for loop where possible 2017-07-23 22:20:51 +02:00
debug.h debug: Improve debugging API (#134) 2016-12-04 23:24:01 +01:00
ethereum_tokens-gen.py coins: include testnet coins just in debug builds 2017-08-13 21:15:34 +02:00
ethereum_tokens.c coins: include testnet coins just in debug builds 2017-08-13 21:15:34 +02:00
ethereum_tokens.h coins: include testnet coins just in debug builds 2017-08-13 21:15:34 +02:00
ethereum.c ethereum: refactor hash_rlp_number 2017-08-31 13:38:50 +02:00
ethereum.h Ethereum Sign/Verify Message 2017-07-12 17:38:30 +02:00
fastflash.c startup: use custom reset_handler 2017-08-16 13:52:01 +02:00
fastflash.h startup: use custom reset_handler 2017-08-16 13:52:01 +02:00
fsm.c layout: show path for CoSi commit/sign if following SLIP-0018 2017-10-09 21:16:39 +02:00
fsm.h fsm: implement CoSi messages 2017-10-03 13:26:38 +02:00
gettext.h gettext: mark localizable strings as proof-of-concept 2017-06-18 22:47:32 +02:00
layout2.c layout2: use macro for layoutSwipe 2017-11-03 18:56:55 +01:00
layout2.h layout2: use macro for layoutSwipe 2017-11-03 18:56:55 +01:00
Makefile Makefile.include: Generate dependency files before build (#225) 2017-10-10 20:54:21 +02:00
messages.c firmware: need extra cast for nanopb call in message.c 2017-09-28 13:20:04 +02:00
messages.h add const where possible (for message parsing) 2016-08-29 22:36:18 +02:00
nem2.c nem2: Update copyright header for consistency 2017-10-09 17:49:13 +01:00
nem2.h nem2: Update copyright header for consistency 2017-10-09 17:49:13 +01:00
nem_mosaics.json nem_mosaics: Add PacNEM 2017-10-01 13:24:13 +01:00
nem_mosaics.py nem_mosaics: Refactor and use Python 2 2017-10-09 18:06:02 +01:00
pinmatrix.c layout2: Disable oledSwipeLeft with DEBUG_LINK (#239) 2017-11-03 18:54:02 +01:00
pinmatrix.h
protect.c Fix check for max try and add another check before 2017-07-31 13:13:49 +02:00
protect.h
recovery-table.h New Matrix-based recovery 2016-11-23 13:21:18 +01:00
recovery.c recovery: don't reset storage on typos during dry-run recovery 2017-07-31 20:49:34 +02:00
recovery.h Allow testing recovery with an initialized device 2017-06-23 16:39:49 +02:00
reset.c reset: refactor code into layoutResetWord 2017-09-04 08:12:33 +02:00
reset.h reset: distinguish between separated call and joined call, mark backup as done only when performed completely 2017-06-29 14:14:20 +02:00
signing.c Fix checking change address 2017-11-03 19:12:41 +01:00
signing.h
storage.c startup: use custom reset_handler 2017-08-16 13:52:01 +02:00
storage.h storage: wipe storage after 15 wrong pins 2017-07-31 02:26:28 +02:00
transaction.c startup: use custom reset_handler 2017-08-16 13:52:01 +02:00
transaction.h signing: Add SIGHASH_FORKID support 2017-07-30 22:51:18 +02:00
trezor.c startup: use custom reset_handler 2017-08-16 13:52:01 +02:00
trezor.h storage: copy only required bytes from old storage, bump storage version 2017-08-16 13:11:31 +02:00
u2f_knownapps.h Added U2F entry for Bitfinex (#237) 2017-11-03 18:57:50 +01:00
u2f.c startup: use custom reset_handler 2017-08-16 13:52:01 +02:00
u2f.h
usb.c usb: whitespace cleanup 2017-05-09 23:49:05 +02:00
usb.h timer: Use Cortex-M3 SysTick timers 2016-11-17 02:07:46 +01:00