Allow keyhash lengths smaller than 32 bytes

The keyhash should be able to have any size up to the maximum allowed
size of 32, but the assert was not allowing images created with newt to
be accepted as valid (newt currently uses only 4 bytes for keyhash).

Signed-off-by: Fabio Utzig <utzig@apache.org>
Signed-off-by: David Brown <david.brown@linaro.org>
1 file changed
tree: 565f08278a2aad093ec00ee7cd368bf244d5afb0
  1. boot/
  2. doc/
  3. samples/
  4. scripts/
  5. sim/
  6. testplan/
  7. .gitignore
  8. .gitmodules
  9. .travis.yml
  10. build_boot.sh
  11. Makefile
  12. project.yml
  13. README-mynewt.rst
  14. README-RIOT.rst
  15. README-zephyr.rst
  16. README.md
  17. release-notes.rst
  18. repository.yml
  19. root-ec-p256.pem
  20. root-rsa-2048.pem
  21. sign.sh
README.md

mcuboot

This is mcuboot, version 0.9.0

Overview

MCUBoot is a secure bootloader for 32-bit MCUs. The goal of MCUBoot is to define a common infrastructure for the bootloader, system flash layout on microcontroller systems, and to provide a secure bootloader that enables easy software upgrade.

MCUboot is operating system and hardware independent, and relies on hardware porting layers from the operating system it works with. Currently mcuboot works with both the Apache Mynewt, and Zephyr operating systems, but more ports are planned in the future. RIOT is currently supported as a boot target with a complete port planned.

Roadmap

The issues being planned and worked on are tracked on Jira. To participate please visit:

https://runtimeco.atlassian.net/projects/MCUB/summary

Browsing

Information and documentation on the bootloader is stored within the source, and on confluence:

https://runtimeco.atlassian.net/wiki/discover/all-updates

For more information in the source, here are some pointers:

  • boot/bootutil: The core of the bootloader itself.
  • boot/boot_serial: Support for serial upgrade within the bootloader itself.
  • boot/zephyr: Port of the bootloader to Zephyr
  • boot/mynewt: Mynewt bootloader app
  • imgtool: A tool to securely sign firmware images for booting by mcuboot.
  • sim: A bootloader simulator for testing and regression

Joining

Developers welcome!