Skip to main content

Crate firmware_update

Crate firmware_update 

Source
Expand description

Allocation-free transaction ownership. Platform boot policy belongs to backends.

Structs§

Capabilities
Update
Exclusive ownership prevents a second writer between verification/activation. Device adapters must also make opening/duplication exclusive. Dropping or recovering the backend never invokes activation. Backends reconstruct boot state themselves; this RAM state describes only the current stream.

Enums§

Error
State

Constants§

AUTHENTICATED_UPDATE
Guarantees are independent: authenticated update does not imply verified boot or a hardware root. Unknown bits must not be interpreted as stronger trust.
FUNCTIONAL_REVERT
HARDWARE_ROOT
VERIFIED_BOOT

Traits§

FirmwareBackend
Implementations own image format, trust roots, staging geometry and persistent boot state. Never return success before accepted bytes are durable according to the platform contract. finish authenticates readback; its nonforgeable proof must bind the exact staging generation. activate must reject stale proofs and mutations since verification. Abort must never clear pending boot.