1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-12 09:28:10 +00:00
Commit Graph

78 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
ceced152a8
docs: update changelogs 2018-03-21 12:29:38 +01:00
Pavol Rusnak
95dd254094
util: use shutdown from trezor-core instead of system_halt 2018-03-21 12:18:36 +01:00
Pavol Rusnak
9588e8f273
update bootloader to 1.4.0 via firmware, run unsigned firmware in unprivileged mode 2018-03-20 15:44:20 +01: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
5ad53e99c3
bootloader: bump version to 1.4.0 2018-03-13 15:42:31 +01:00
Pavol Rusnak
4af78f06a3
bootloader: refactor signatures_ok return value 2018-03-13 15:41:42 +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
Jochen Hoenicke
83a69a0334
Added fixed-width font and multi-font support 2018-02-20 18:22:47 +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
Jochen Hoenicke
98e617d874
startup: use custom reset_handler
+ group confidential data in one place
+ zero all SRAM where needed
2017-08-16 13:52:01 +02:00
Pavol Rusnak
91c4cbdbd0
setup: move stack protector variable to setup.h 2017-07-30 21:56:30 +02:00
Pavol Rusnak
0760ff0468
setup: move stack smashing protection code to setup.c 2017-07-30 21:40:07 +02: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
5fa82cc4cb
bootloader: align during docker build 2017-07-19 12:52:46 +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
86bcede12d
bootloader: add changelog, bump version to 1.3.2 2017-07-11 23:45:08 +02:00
Pavol Rusnak
7ca4b11c3a
add USB test to SelfTest 2017-07-10 19:10:25 +02:00
Pavol Rusnak
3d6bfddc5f
move -Os flag to Makefiles of bootloader and fastflash 2017-07-04 20:21:10 +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
Saleem Rashid
f23489050a util: Add load_vector_table 2017-07-03 18:35:42 +02:00
Pavol Rusnak
4603b0c800
bootloader: subtle changes in bootloader.c and fastflash.c to make them more similar 2017-07-01 16:22:22 +02:00
mruddy
f274d8cd73 fix bootloader stack protector fault 2017-07-01 16:13:35 +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
Saleem Rashid
80d17c1333 bootloader: Allow building as an app 2017-06-25 18:19:07 +02:00
Saleem Rashid
0b3373e6df bootloader: Remove duplicate 'flash' target 2017-06-25 18:19:07 +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
Jochen Hoenicke
49645ba277 Compute hash before checking signatures. (#158)
This fixes the problem where an invalid hash is shown, if
the firmware contains no signing key indices.
2017-03-30 02:24:53 +02:00
Saleem Rashid
dfe783d729 firmware_sign: Python 3 compatibility (#156) 2017-03-05 14:43:22 +01:00