-
Notifications
You must be signed in to change notification settings - Fork 7.8k
bootloader: mcuboot: Changes needed to support AES256 #93809
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
base: main
Are you sure you want to change the base?
bootloader: mcuboot: Changes needed to support AES256 #93809
Conversation
The complaince here fails as it needs changes from mcu-tools/mcuboot#2406 @nordicjm Should I open some PR to https://github.com/zephyrproject-rtos/mcuboot or should I simply wait until the mcu-tools/mcuboot PR is merged and then the changes are imported to the zephyr mcuboot? |
Add a commit (before referencing the Kconfigs) which updates west.yml with:
and see if it passes, then it can be updated properly later once merged and brought into the zephyr fork |
801002a
to
2ba96aa
Compare
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
2ba96aa
to
f6e3466
Compare
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_ENCRYPTION_ALG_AES_256 y) | ||
endif() | ||
endif() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
f6e3466
to
48896d4
Compare
if(SB_CONFIG_BOOT_ENCRYPTION) | ||
set_config_string(${image} CONFIG_BOOT_ENCRYPTION_KEY_FILE "${SB_CONFIG_BOOT_ENCRYPTION_KEY_FILE}") | ||
if(SB_CONFIG_BOOT_ENCRYPTION_ALG_AES_128) | ||
set_config_bool(${image} CONFIG_BOOT_ENCRYPT_ALG_AES_128 y) | ||
elseif(SB_CONFIG_BOOT_ENCRYPTION_ALG_AES_256) | ||
set_config_bool(${image} CONFIG_BOOT_ENCRYPT_ALG_AES_256 y) | ||
endif() | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes these lines would go:
if(SB_CONFIG_BOOT_ENCRYPTION) | |
set_config_string(${image} CONFIG_BOOT_ENCRYPTION_KEY_FILE "${SB_CONFIG_BOOT_ENCRYPTION_KEY_FILE}") | |
if(SB_CONFIG_BOOT_ENCRYPTION_ALG_AES_128) | |
set_config_bool(${image} CONFIG_BOOT_ENCRYPT_ALG_AES_128 y) | |
elseif(SB_CONFIG_BOOT_ENCRYPTION_ALG_AES_256) | |
set_config_bool(${image} CONFIG_BOOT_ENCRYPT_ALG_AES_256 y) | |
endif() | |
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done
48896d4
to
a7a31d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK, will have to wait for MCUboot sync.
west.yml
Outdated
@@ -310,8 +312,9 @@ manifest: | |||
groups: | |||
- crypto | |||
- name: mcuboot | |||
revision: 461e060e8687c9a75074effcc61d7f68c5112cfd | |||
revision: pull/2406/head |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can already change the revision to the sha, as your pr has been merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to proper revision
a7a31d3
to
4707ce0
Compare
Ready to be merged! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 2 nits
This commit adds changes which are necessary to support the AES256 encryption algorithm in mcuboot. Signed-off-by: Artur Hadasz <[email protected]>
4707ce0
to
9038c78
Compare
|
This commit adds changes which are necessary to support the AES256 encryption algorithm in mcuboot.