Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.15 KB

File metadata and controls

35 lines (23 loc) · 1.15 KB

mcuboot-meta

A library to read and parse MCUboot images written in rust 🦀

With this library you can easily access the image's hashes and signature.

Usage

let path = std::path::Path::new("test/test_image.signed.bin");
let image_metadata = mcuboot_meta::parse_image(&path).expect("Failed to parse image");

println!("Image header:\n{:#?}", image_metadata.header);
println!("Image sha256_hash: {:#?}", image_metadata.sha256_hash);
println!("Image signature: {:#?}", image_metadata.signature);
println!("Image signature_key_hash: {:#?}", image_metadata.signature_key_hash);

Known limitations

Protected TLV

Currently the protected TLV area is not extracted from the image. It would be a simple addition to be added, but I never had a MCUBoot image with the protected area present to be able to verify the code. If you require this feature, feel free to open an issue or PR :)

License

mcuboot-meta is licensed under either of

at your option.