espsign
A utility for signing ESP32 firmware images for ESP RSA Secure Boot V2
Highlights
- Pure-Rust
no_std(but needsalloc) library interface for:- Signing
- Verifying
- Generating key SHA-256 E-FUSE signature
- Command line interface
Examples
Command line
Install the command line utility
Generate a new PEM signing key in file foo:
Generate a new password-protected with pass PEM signing key in file foo, and with E-FUSE SHA-256 hash in file hash:
Sign an app image firmware using a pre-generated PEM signing key from file foo
NOTE: App image should first be padded to 64K alignment with e.g. esptools:
Verify a signed app image firmware-signed
Library
Verify an image. Other examples.
use File;
use PathBuf;
use info;
use ;
/// Verify that `image` is properly signed