1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 21:08:07 +00:00
trezor-firmware/core/embed
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
..
boardloader fix(core): avoid accidental build with broken stack protector (boardloader) 2021-09-29 12:48:31 +02:00
bootloader fix(core): change logic of vendor header comparison 2022-01-03 14:23:58 +01:00
bootloader_ci fix(core): change logic of vendor header comparison 2022-01-03 14:23:58 +01:00
extmod fix(core): add missing include 2021-12-14 19:57:21 +01:00
firmware chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
prodtest refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00
reflash refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00
rust build(core): update rust edition to 2021 2021-12-07 17:12:43 +01:00
segger style(core): systemview editorconfig reformat 2021-01-26 20:53:38 +01:00
trezorhal fix(core): change logic of vendor header comparison 2022-01-03 14:23:58 +01:00
unix refactor(crypto,core): make zkp_context_init() return status 2021-11-18 19:05:40 +01:00
vendorheader core/headertool: support generating vendor headers with explicit size 2020-02-05 12:23:34 +01:00