Expand description
Firmware images verification.
Structs§
- Header
- The header of the firmware.
- Information
- Firmware information.
- Signature
- Firmware signature information.
Enums§
- Verify
Header Error - Errors that can happen when verifying the firmware header.
- Verify
Signature Error - 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
andSignature::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.