core/verify-rpi
Verify a Raspberry Pi boot signature against a public key.
Verify a Raspberry Pi boot signature against a public key.
Inputs
-
image -
Kind: file
FAT boot.img that the signature authenticates.
-
signature -
Kind: file
Raspberry Pi boot.sig returned by the signer.
-
public-key -
Kind: file
PEM-encoded RSA-2048 public key that must verify the signature.
Outputs
-
signature -
Kind: file
Verified Raspberry Pi RSA-2048 signature.
Execution
-
Environment
-
Rugix Bakery
-
Source epoch
-
Ignored
-
Output cache
-
Allowed
Behavior
Check a Raspberry Pi boot signature independently of the signer that created it.
The rule verifies signature over image with public-key using the pinned
upstream rpi-eeprom-digest tool and enforces the 180 MB RAM disk budget of
boot.img.
Compositions run this rule after every replaceable Raspberry Pi signer, such as
the rpi-signer rule parameter of
core/image-rpi-verified.
Example
uses = "core/verify-rpi"
inputs.image = { path = "boot.img" }
inputs.signature = { path = "boot.sig" }
inputs.public-key = { path = "keys/boot.pub" }
Save the invocation as build-rule.toml and run
./run-bakery bake rule build-rule.toml build/result.