Crate foundation_firmware

Source
Expand description

Firmware images verification.

Structs§

Header
The header of the firmware.
Information
Firmware information.
Signature
Firmware signature information.

Enums§

VerifyHeaderError
Errors that can happen when verifying the firmware header.
VerifySignatureError
Errors that can happen when verifying the firmware signatures.

Constants§

DATE_LEN
Length of the firmware date in bytes.
HEADER_LEN
Length of the header, in bytes.
MAX_LEN
Maximum length of the firmware, in bytes.
MAX_PUBLIC_KEYS
Maximum index in the Signature::public_key1 and Signature::public_key2 fields if it isn’t an user key (USER_KEY).
USER_KEY
Magic value to indicate that the index in the public key is indicating a self signed firmware.
VERSION_LEN
Length of the firmware version, in bytes.

Functions§

foundation_public_keys
Keys that are used in Passport to verify the validity of a firmware, they are in a specific order and map to an index in
header
Parse the firmware’s Header.
verify_signature
Verifies the signature of the firmware.