mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-11 05:36:09 +00:00
firmware: update forgotten comment
This commit is contained in:
parent
e1efd493fd
commit
3f92683bc6
@ -214,6 +214,8 @@ def validate(fw: FirmwareType, skip_vendor_header=False) -> bool:
|
|||||||
|
|
||||||
if not skip_vendor_header:
|
if not skip_vendor_header:
|
||||||
try:
|
try:
|
||||||
|
# if you want to validate a custom vendor header, you can modify
|
||||||
|
# the global variables to match your keys and m-of-n scheme
|
||||||
cosi.verify_m_of_n(
|
cosi.verify_m_of_n(
|
||||||
fw.vendor_header.signature,
|
fw.vendor_header.signature,
|
||||||
vendor_fingerprint,
|
vendor_fingerprint,
|
||||||
@ -222,7 +224,6 @@ def validate(fw: FirmwareType, skip_vendor_header=False) -> bool:
|
|||||||
fw.vendor_header.sigmask,
|
fw.vendor_header.sigmask,
|
||||||
V2_BOOTLOADER_KEYS,
|
V2_BOOTLOADER_KEYS,
|
||||||
)
|
)
|
||||||
# TODO support
|
|
||||||
except Exception:
|
except Exception:
|
||||||
raise ValueError("Invalid vendor header signature.")
|
raise ValueError("Invalid vendor header signature.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user