Skip to content

Commit

Permalink
zephyr: Fix image encryption configuration for mbedTLS.
Browse files Browse the repository at this point in the history
Add a few missing Kconfig options.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
  • Loading branch information
de-nordic authored and nordicjm committed Jan 27, 2025
1 parent e5b8952 commit 96b7008
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions boot/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ config NRF_CC310_BL
bool
default n

if BOOT_USE_MBEDTLS && MBEDTLS_BUILTIN

config BOOT_AES_MBEDTLS_DEPENDENCIES
bool
select MBEDTLS_CIPHER_AES_ENABLED
select MBEDTLS_CIPHER_MODE_CTR_ENABLED

endif

menu "MCUBoot settings"

config SINGLE_APPLICATION_SLOT
Expand Down Expand Up @@ -159,6 +168,7 @@ config BOOT_SIGNATURE_TYPE_RSA
select MBEDTLS_KEY_EXCHANGE_RSA_ENABLED if MBEDTLS_BUILTIN
select BOOT_ENCRYPTION_SUPPORT
select BOOT_IMG_HASH_ALG_SHA256_ALLOW
select BOOT_AES_MBEDTLS_DEPENDENCIES if MBEDTLS_BUILTIN && BOOT_ENCRYPT_IMAGE

if BOOT_SIGNATURE_TYPE_RSA
config BOOT_SIGNATURE_TYPE_RSA_LEN
Expand Down Expand Up @@ -227,6 +237,7 @@ config BOOT_ED25519_MBEDTLS
select BOOT_USE_MBEDTLS
select MBEDTLS
select MBEDTLS_ASN1_PARSE_C if MBEDTLS_BUILTIN
select BOOT_AES_MBEDTLS_DEPENDENCIES if MBEDTLS_BUILTIN && BOOT_ENCRYPT_IMAGE

endchoice
endif
Expand Down

0 comments on commit 96b7008

Please # to comment.