Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espressif: Bootloader size limitation when Flash Encryption + Secure Boot V2 + MCUboot signing are enabled #1262

Closed
almir-okato opened this issue Dec 28, 2021 · 2 comments
Labels
area: espressif Affects the Espressif port stale

Comments

@almir-okato
Copy link
Collaborator

almir-okato commented Dec 28, 2021

This issue was created to track the following scenario:

Both Flash Encryption and Secure Boot V2 hardware-powered support were added to the Espressif port in addition to the MCUboot security chain.
Each feature alone can be enabled without issues. However, currently when all features are enabled at the same time, the resulting bootloader binary size for some chip + feature combination may exceed the size limit for the ROM bootloader verification, which may prevent the system from boot (Documentation).

Considering the signing schemes currently implemented by MCUboot, these are the combinations currently supported by the Espressif port:

MCUboot signing scheme No security features Secure Boot V2 + Flash Encryption
ESP32 ESP32-S2 ESP32-C3 ESP32-S3 ESP32 ESP32-S2 ESP32-C3 ESP32-S3
RSA-2048 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
RSA-3072 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
EC256 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
ED25519 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
@gustavonihei gustavonihei added the area: espressif Affects the Espressif port label Dec 28, 2021
@d3zd3z
Copy link
Member

d3zd3z commented Jan 11, 2022

At least some of the Nordic devices also have restrictions on the size of the bootloader.

@github-actions
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: espressif Affects the Espressif port stale
Projects
None yet
Development

No branches or pull requests

3 participants