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 <[email protected]>
  • Loading branch information
de-nordic committed Jan 24, 2025
1 parent 3f67213 commit 20338c1
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 @@ -135,6 +144,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 @@ -184,6 +194,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 20338c1

Please sign in to comment.