1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-19 22:40:58 +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
dma.h
flash.c
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
lowlevel.c
lowlevel.h
mini_printf.c
mini_printf.h
mpu.c
mpu.h
random_delays.c style(core): trezorhal/random_delays.c 2021-07-07 14:39:24 +02:00
random_delays.h
rng.c
rng.h
sbu.c
sbu.h
sdcard-set_clr_card_detect.h
sdcard.c
sdcard.h
secbool.h
stm32.c
stm32f4xx_hal_conf.h
supervise.h feat(core): implement svc shutdown 2021-06-23 16:40:45 +02:00
systemview.h
systick.c
systick.h
touch.c refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
touch.h
usb_hid-defs.h
usb_hid-impl.h
usb_vcp-defs.h
usb_vcp-impl.h
usb_webusb-defs.h
usb_webusb-impl.h
usb.c
usb.h
usbd_conf.c docs: fix typos in comments 2021-06-30 15:41:55 +02:00
usbd_conf.h
usbd_core.c
usbd_core.h
usbd_ctlreq.c
usbd_ctlreq.h
usbd_def.h
usbd_ioreq.c
usbd_ioreq.h
util.s feat(core): jump to unprivileged mode after shutdown 2021-06-23 16:40:45 +02:00
vectortable.s