1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-20 23:09:13 +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 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
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 feat(core): make random delays use chacha_drbg 2021-05-21 13:42:53 +02:00
rng.c
rng.h
sbu.c
sbu.h
sdcard-set_clr_card_detect.h
sdcard.c
sdcard.h
secbool.h
stm32.c refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00
stm32f4xx_hal_conf.h
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
touch.c refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
touch.h
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
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
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
usb.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
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 refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00