Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

igiona/mcuboot-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcuboot-rs

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_rs::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-rs 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