1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-30 01:58:11 +00:00
trezor-firmware/core/embed/trezorhal
Pavol Rusnak 35d40cc164 fix(core): change logic of vendor header comparison
Previously we checked whether the current vendor header and
the new vendor header are the same by comparing the embedded keyset.

What originally looked like a good idea is not that good, because
this disallows us from ever changing the vendor header signing keys
without causing erasure of the storage during the version update.

This commit fixes that by changing the logic to comparing just the
vendor string.

Change of function names is purely cosmetic:
* vendor_keys_hash -> vendor_header_hash
* check_vendor_keys_lock -> check_vendor_header_lock
2022-01-03 14:23:58 +01:00
..
button.c refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
button.h refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
common.c fix(core): use unprivileged shutdown where needed 2021-06-23 16:40:45 +02:00
common.h feat(core): implement wrapper for svc_shutdown 2021-06-23 16:40:45 +02:00
compiler_traits.h fix(core & legacy): explicit compiler versions 2021-09-27 15:42:29 +02:00
dma.c core: reorganize source code to allow boardloader build 2019-12-15 08:43:00 +00:00
dma.h core/embed: enable DMA for SDIO operations 2019-12-11 15:28:49 +00:00
flash.c core: unify usage of TREZOR_MODEL 2020-06-06 21:06:15 +02:00
flash.h fix(core): change logic of vendor header comparison 2022-01-03 14:23:58 +01:00
image.c fix(core): change logic of vendor header comparison 2022-01-03 14:23:58 +01:00
image.h fix(core): change logic of vendor header comparison 2022-01-03 14:23:58 +01:00
irq.h core: reorganize source code to allow boardloader build 2019-12-15 08:43:00 +00:00
lowlevel.c fix(core): don't assert reset flags to allow "reboot to bootloader" 2021-03-10 18:31:51 +01:00
lowlevel.h fix(core): don't assert reset flags to allow "reboot to bootloader" 2021-03-10 18:31:51 +01:00
mini_printf.c MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
mini_printf.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
mpu.c core/embed: switch to unprivileged in main.c 2020-01-24 12:29:46 +00:00
mpu.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
random_delays.c style(core): trezorhal/random_delays.c 2021-07-07 14:39:24 +02:00
random_delays.h feat(core): make random delays use chacha_drbg 2021-05-21 13:42:53 +02:00
rng.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
rng.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sbu.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sbu.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sdcard-set_clr_card_detect.h core: use set_clr_card_detect to disable SD card pull-up resistor 2019-09-25 12:13:53 +02:00
sdcard.c core: check whether USB structures are correct to avoid faults in shutdown 2019-12-18 17:16:36 +01:00
sdcard.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
secbool.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
stm32.c refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00
stm32f4xx_hal_conf.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
supervise.h feat(core): implement svc shutdown 2021-06-23 16:40:45 +02:00
systemview.h feat(core): systemview header 2021-01-26 20:53:38 +01:00
systick.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
systick.h core/embed: enable DMA for SDIO operations 2019-12-11 15:28:49 +00:00
touch.c refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
touch.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usb_hid-defs.h feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
usb_hid-impl.h core/usb: avoid naks in hid/webusb rx interfaces 2020-01-07 20:52:43 +01:00
usb_vcp-defs.h feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
usb_vcp-impl.h core: Prevent data loss when writing to USB VCP. 2020-02-25 12:08:07 +01:00
usb_webusb-defs.h feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
usb_webusb-impl.h core/usb: avoid naks in hid/webusb rx interfaces 2020-01-07 20:52:43 +01:00
usb.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
usb.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usbd_conf.c docs: fix typos in comments 2021-06-30 15:41:55 +02:00
usbd_conf.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_core.c MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_core.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_ctlreq.c all: remove extraneous whitespace 2019-05-26 22:20:14 +02:00
usbd_ctlreq.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_def.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_ioreq.c MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_ioreq.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
util.s feat(core): jump to unprivileged mode after shutdown 2021-06-23 16:40:45 +02:00
vectortable.s refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00