1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00
trezor-firmware/firmware
Jochen Hoenicke 9287dd7e04
Poll USB during BIP39 derivation.
This patch adds calls to usbPoll in the progress callback.  This
should address #98.

We call usbDelay instead of Poll, to call usbd_poll several times.
Otherwise it would only handle one event instead of handling all
events that were pending so far.  The ugly magic number 5 is a guess.

Note that we also need to set usbTiny, so that we don't recursively
process messages.  Since we don't know whether usbTiny is set, we
need to store the old value (especially true for u2f).

This fix also relies on another fix in libopencm3.
2016-11-09 16:17:50 +01:00
..
protob implement u2f_counter in LoadDevice, Recoverydevice and ResetDevice messages 2016-10-31 16:20:15 +01:00
u2f add set -e to shell scripts 2016-07-03 13:54:32 +02:00
coins-gen.py add coins-gen.py script and generate coins.c using that script 2016-10-20 15:27:34 +02:00
coins.c fix Verify (by introducing coinExtractAddressType) 2016-10-25 17:02:02 +02:00
coins.h fix Verify (by introducing coinExtractAddressType) 2016-10-25 17:02:02 +02:00
crypto.c crypto: allow Ed25519 signing larger digests (#124) 2016-10-24 12:41:10 +02:00
crypto.h Use trezor-crypto ECDH, adding Curve25519 support 2016-10-16 01:34:02 +02:00
debug.c fix bugs in debug 2016-04-29 17:06:21 +02:00
debug.h import v1.0.0 2014-04-29 14:38:32 +02:00
ethereum.c Reworked rfc6979 signing. (#116) 2016-10-06 16:58:05 +02:00
ethereum.h Ethereum signing skeleton 2016-08-19 03:14:38 +01:00
fsm.c implement u2f_counter in LoadDevice, Recoverydevice and ResetDevice messages 2016-10-31 16:20:15 +01:00
fsm.h Include placeholder handlers for the Ethereum protocol 2016-08-19 03:14:38 +01:00
layout2.c show different dialog when U2F client uses bogus appid 2016-10-31 11:56:11 +01:00
layout2.h allow ClearSession purely via confirm button 2016-10-25 15:21:56 +02:00
Makefile update trezor-crypto 2016-10-24 20:55:45 +02:00
messages.c add const where possible (for message parsing) 2016-08-29 22:36:18 +02:00
messages.h add const where possible (for message parsing) 2016-08-29 22:36:18 +02:00
pinmatrix.c firmware: exclude debug functionality from release build 2015-08-24 15:51:20 +03:00
pinmatrix.h import v1.0.0 2014-04-29 14:38:32 +02:00
protect.c Merge branch 'u2f' 2016-06-12 22:53:28 +02:00
protect.h fix initialize handling in interactive mode 2014-05-20 15:37:58 +02:00
recovery.c halt the device when encountered an invalid mnemonic (skip if device loaded or recovered without enforced wordlist) 2016-11-09 16:06:50 +01:00
recovery.h implement u2f_counter in LoadDevice, Recoverydevice and ResetDevice messages 2016-10-31 16:20:15 +01:00
reset.c implement u2f_counter in LoadDevice, Recoverydevice and ResetDevice messages 2016-10-31 16:20:15 +01:00
reset.h implement u2f_counter in LoadDevice, Recoverydevice and ResetDevice messages 2016-10-31 16:20:15 +01:00
signing.c check return values of ecdsa_sign calls 2016-11-08 15:48:44 +01:00
signing.h pass version/lock_time parameters from SignTx message to signing_init function 2016-04-16 04:47:09 +02:00
storage.c Poll USB during BIP39 derivation. 2016-11-09 16:17:50 +01:00
storage.h new message SetU2FCounter 2016-06-12 23:44:36 +02:00
transaction.c implement TXEXTRADATA transaction RequestType 2016-10-20 13:25:40 +02:00
transaction.h fix prevtx hashing when input count is 0 2016-10-21 13:20:57 +02:00
trezor.c lock screen after 10 minutes of inactivity 2016-10-25 17:45:30 +02:00
trezor.h bump version, add changelog 2016-10-26 18:06:13 +02:00
u2f_knownapps.h fix uppercase letters in GitHub/GitLab 2016-07-04 16:58:57 +02:00
u2f.c check return values of ecdsa_sign calls 2016-11-08 15:48:44 +01:00
u2f.h More standard conform behaviour 2016-05-24 01:16:55 +02:00
usb.c Poll USB during BIP39 derivation. 2016-11-09 16:17:50 +01:00
usb.h Poll USB during BIP39 derivation. 2016-11-09 16:17:50 +01:00