Skip to content

igiona/mcuboot-meta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages