1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 14:08:11 +00:00
Commit Graph

45 Commits

Author SHA1 Message Date
Jochen Hoenicke
c4e1c5953e Fix shift overflow
Avoid undefined behavior by casting uint8_t to uint32_t before shifting
by 24 bits.
2018-03-27 15:00:25 +02:00
Pavol Rusnak
dbe444029a
bootloader: guard signatures_ok calls with firmware_present (or !brand_new_firmware) 2018-03-15 04:15:41 +01:00
Pavol Rusnak
816b4e0f72
bootloader: process WipeDevice 2018-03-15 03:15:08 +01:00
Pavol Rusnak
b933e292db
bootloader: fix signatures_ok usage in usb.c after refactoring 2018-03-15 03:03:05 +01:00
Pavol Rusnak
b20336e82d
Revert WinUSB feature
This reverts the following range of commits:
68168393b9ea61328f4bb43bc3059ab32c4be2e9..ab76828e16b552c82f468e5d89f1af0645258995

Revert "update usb descriptors"
This reverts commit ab76828e16.

Revert "trezorhal: reply with winusb guid just for the main interface (0)"
This reverts commit 6acfc5d1b3.

Revert "winusb: fix WINUSB_EXTRA_STRING"
This reverts commit 966d8cb4ce.

Revert "winusb: cleanup DeviceInterfaceGUIDs usage"
This reverts commit 56c5a46095.

Revert "make winusb_string_descriptor const"
This reverts commit 132cc4b474.

Revert "webusb: remove unused constants"
This reverts commit 38b4d507bc.

Revert "bootloader: remove debug"
This reverts commit 56d3cbe2e9.

Revert "Bootloader - Switch from HID to WebUSB"
This reverts commit a22abfe90b.

Revert "Switch from HID to WebUSB"
This reverts commit cb067bd14c.

Revert "Add WinUSB, WebUSB, USB2.1 to build"
This reverts commit 05e218bcb8.

Revert "Add WebUSB descriptors"
This reverts commit a062127cef.

Revert "Add WinUSB (WebUSB preparation)"
This reverts commit e6981e85cd.
2018-03-14 00:37:08 +01:00
Pavol Rusnak
e0b5526f27
bootloader: react to GetFeatures too 2018-03-07 14:16:24 +01:00
Pavol Rusnak
ab76828e16
update usb descriptors 2018-02-20 19:13:39 +01:00
Pavol Rusnak
56d3cbe2e9
bootloader: remove debug 2018-02-20 19:13:39 +01:00
Karel Bilek
a22abfe90b
Bootloader - Switch from HID to WebUSB 2018-02-20 19:13:39 +01:00
Pavol Rusnak
bd660655ee
introduce and use memzero instead of explicit_bzero 2018-01-18 15:21:48 +01:00
Pavol Rusnak
4a2d68acb9
use explicit_bzero where possible; update trezor-crypto 2018-01-16 19:49:47 +01:00
Pavol Rusnak
eb0574bda7
bootloader: don't restore storage from unofficial firmware 2017-12-17 03:19:49 +01:00
Pavol Rusnak
41901a8056 firmware: rework protectChangePin
bootloader: wait for flash operation to finish
2017-12-12 12:51:08 +01:00
Jochen Hoenicke
2387f71813 bootloader: Check that erasing flash worked 2017-12-12 12:51:08 +01:00
Jochen Hoenicke
b4a61d60c3 bootloader: Delay flashing firmware magic.
Only flash firmware magic at the end.  Also simplified the code a bit.
2017-12-12 12:51:08 +01:00
Pavol Rusnak
bc7c66aa76
add Features.model field (set to "1") 2017-12-04 22:30:11 +01:00
Pavol Rusnak
18d8cb3c56
add project website (trezor.io) to license header 2017-11-05 17:47:23 +01:00
Pavol Rusnak
cb020cb1d8
bootloader: refactor calculate fingerprint part (not issue button request if brand new firmware) 2017-07-25 17:24:40 +02:00
Pavol Rusnak
184529bbfc
bootloader: erase metadata backup after usage 2017-07-24 14:39:15 +02:00
Pavol Rusnak
980bae6cb5
bootloader: in self-test perform each step just once 2017-07-19 11:39:04 +02:00
Pavol Rusnak
6141782270
bootloader: fix whitespace 2017-07-19 00:12:22 +02:00
Pavol Rusnak
bf374f1769
bootloader: add RNG test 2017-07-19 00:08:36 +02:00
Pavol Rusnak
7ca4b11c3a
add USB test to SelfTest 2017-07-10 19:10:25 +02:00
Pavol Rusnak
d4b9ea2287
bootloader: add cpu test 2017-07-04 19:34:25 +02:00
Pavol Rusnak
8581a9a37a
bootloader: add UI to SelfTest 2017-07-03 19:18:34 +02:00
Pavol Rusnak
0f42f64dfd
bootloader: do not show fingerprint on very first flash; refactor firmware_present, introduce brand_new_firmware 2017-06-30 16:52:00 +02:00
Pavol Rusnak
87b815d6ec
bootloader: selftest now writes and checks various bit patterns 2017-06-29 18:36:19 +02:00
Pavol Rusnak
425341ba44
bootloader: add small test to SelfTest (erase/restore metadata), small refactor 2017-06-29 18:13:30 +02:00
Pavol Rusnak
2bf807878d
bootloader: add SelfTest 2017-06-29 17:31:23 +02:00
Pavol Rusnak
09eaaa09ee
bootloader: don't show recovery seed warning if no firmware is present 2017-04-16 19:31:08 +02:00
Pavol Rusnak
0200ee5763
bootloader: cleanup protobuf messages 2017-04-16 19:31:03 +02:00
Pavol Rusnak
ab006262e8
mytrezor.com -> trezor.io/start 2017-01-10 15:08:08 +01:00
Pavol Rusnak
ee3a7cbcfa
fix bug when long press of buttons breaks usb communication in bootloader, bump bl version to 1.3.1 2016-12-06 22:35:56 +01:00
Pavol Rusnak
d7ff70caf6
add checking of buttons to bootloader 2016-10-06 15:03:11 +02:00
Pavol Rusnak
9fe9ebc990
fix usb descriptor in bootloader 2016-09-26 14:57:10 +02:00
Pavol Rusnak
2f7ed2aa0f
implement firmware_present flag in bootloader 2016-09-26 13:09:18 +02:00
Pavol Rusnak
b1e3c52b08
remove DialogIcon enum, use bitmap structure directly 2016-06-08 19:20:07 +02:00
Jochen Hoenicke
af442d17e0 Faster flashing, smoother animation.
Compute sha256 hahsum at the end.
Display progress bar for flash erase.
2016-05-25 00:41:13 +02:00
Pavol Rusnak
27b3c63d85
cleanup usb in bootloader 2016-05-23 19:42:36 +02:00
Pavol Rusnak
5e5138066a
adapt the reorder of hash_final functions 2016-04-26 11:53:58 +02:00
Pavol Rusnak
fa0b238b45
show firmware hash screen after unofficial firmware dialog 2016-02-10 14:16:59 +01:00
Pavol Rusnak
63bc16d375
signatures_ok function in bootloader exports firmware hash if needed 2016-02-10 13:53:08 +01:00
Pavol Rusnak
90171e0aa6 update bootloader and demo to new usb api 2015-08-05 16:57:23 +02:00
Pavol Rusnak
2a2eba7de5 rework layoutProgress functions 2014-12-21 18:58:56 +01:00
Pavol Rusnak
938e8a5966 bootloader source code 2014-10-23 18:09:41 +02:00