commit | 7ebf0e8277e8e7745a336d46b3e76f3bbf9ce0a2 | [log] [tgz] |
---|---|---|
author | Mark Horvath <mark.horvath@arm.com> | Fri Feb 19 09:55:35 2021 +0100 |
committer | Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no> | Fri Nov 25 17:54:03 2022 +0100 |
tree | 5f70b9d8cfce78ff84486ad0688a4ba1f8f26b85 | |
parent | 82ee5d0bb9ac68c14033b102705904ee9991ee3d [diff] |
bootutil: Fix bootutil_find_key return value The return value of bootutil_find_key is used as the key_id in the bootutil_img_validate function, and negative key_id value used in case of errors. If MCUBOOT_HW_KEY is set, than the key hash is read by boot_retrieve_public_key_hash function, but the exceptation is only to return nonzero on failure, so its error code should not be propagated up to the caller. Instead, bootutil_find_key should return -1 in case of a platform error. Change-Id: I8e2bd12a5cf53787e10ae45c2ab556e8a856692d Signed-off-by: Mark Horvath <mark.horvath@arm.com>
This is MCUboot version 1.10.0-dev
MCUboot is a secure bootloader for 32-bits microcontrollers. It defines a common infrastructure for the bootloader and the system flash layout on microcontroller systems, and provides a secure bootloader that enables easy software upgrade.
MCUboot is not dependent on any specific operating system and hardware and relies on hardware porting layers from the operating system it works with. Currently, MCUboot works with the following operating systems and SoCs:
RIOT is supported only as a boot target. We will accept any new port contributed by the community once it is good enough.
See the following pages for instructions on using MCUboot with different operating systems and SoCs:
There are also instructions for the Simulator.
The issues being planned and worked on are tracked using GitHub issues. To give your input, visit MCUboot GitHub Issues.
You can find additional documentation on the bootloader in the source files. For more information, use the following links:
Developers are welcome!
Use the following links to join or see more about the project: