-
Notifications
You must be signed in to change notification settings - Fork 709
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
boot_copy_region uses boot_encrypt before boot_enc_init if a swap is continued #2183
Comments
What about loop doing the mcuboot/boot/bootutil/src/loader.c Lines 1625 to 1635 in 0674798
|
Your are right, this seems to be the fixed in main, but only recently |
True. My bad. |
Can we close the issue? |
Swap continuation with the favored crypto library (since tinycrypt is discontinued) is broken in the release version. |
swap_run
will reach down toboot_copy_region
which always callsboot_encrypt
for encrypted images, but the AES context is only initialized viaboot_enc_load
if a swap was NOT ongoing.This effectively breaks swap continuation for encoded images if the used crypto library relies on initialization.
Which is the case for mbedtls_aes_init and will pretty much always be the case for HW based implementations.
The following screenshots show my HW implementation failing, but according to my review, mbedtls will fail at the same point!
The text was updated successfully, but these errors were encountered: