Crate foundation_firmware
source ·Expand description
Firmware images verification.
Structs§
- The header of the firmware.
- Firmware information.
- Firmware signature information.
Enums§
- Errors that can happen when verifying the firmware header.
- Errors that can happen when verifying the firmware signatures.
Constants§
- Length of the firmware date in bytes.
- Length of the header, in bytes.
- Maximum length of the firmware, in bytes.
- Maximum index in the
Signature::public_key1
andSignature::public_key2
fields if it isn’t an user key (USER_KEY
). - Magic value to indicate that the index in the public key is indicating a self signed firmware.
- Length of the firmware version, in bytes.
Functions§
- 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
- Parse the firmware’s
Header
. - Verifies the signature of the firmware.