Skip to content

Commit 23a2592

Browse files
michalek-nonvlsianpu
authored andcommitted
[nrf noup] boot: zephyr: Kconfig dependencies for PSA LITE
exclude certain crypto parts when PSA_CORE_LITE is selected. Signed-off-by: Mateusz Michalek <[email protected]> Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 1916314) (cherry picked from commit ad2e825)
1 parent 62ee266 commit 23a2592

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

boot/zephyr/Kconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ if BOOT_USE_PSA_CRYPTO
7474
config BOOT_PSA_IMG_HASH_ALG_SHA256_DEPENDENCIES
7575
bool
7676
default y if BOOT_SOMETHING_USES_SHA256
77-
select PSA_WANT_ALG_SHA_256
77+
select PSA_WANT_ALG_SHA_256 if !PSA_CORE_LITE
7878
help
7979
Dependencies for hashing with SHA256
8080

8181
config BOOT_PSA_IMG_HASH_ALG_SHA512_DEPENDENCIES
8282
bool
8383
default y if BOOT_SOMETHING_USES_SHA512
84-
select PSA_WANT_ALG_SHA_512
84+
select PSA_WANT_ALG_SHA_512 if !PSA_CORE_LITE
8585
help
8686
Dependencies for hashing with SHA512
8787

@@ -90,7 +90,7 @@ config BOOT_ED25519_PSA_DEPENDENCIES
9090
select PSA_WANT_ALG_PURE_EDDSA
9191
select PSA_WANT_ECC_TWISTED_EDWARDS_255
9292
select PSA_WANT_ECC_MONTGOMERY_255
93-
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
93+
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT if !PSA_CORE_LITE
9494
help
9595
Dependencies for ed25519 signature
9696

@@ -344,9 +344,9 @@ config BOOT_ED25519_PSA
344344
select PSA_CRYPTO_C
345345
select MBEDTLS_PSA_CRYPTO_C
346346
select MBEDTLS_ASN1_PARSE_C if MBEDTLS_BUILTIN
347-
select MBEDTLS_ENABLE_HEAP
348-
select BOOT_IMG_HASH_ALG_SHA256_ALLOW
349-
select BOOT_IMG_HASH_ALG_SHA512_ALLOW
347+
select MBEDTLS_ENABLE_HEAP if !PSA_CORE_LITE
348+
select BOOT_IMG_HASH_ALG_SHA256_ALLOW if !PSA_CORE_LITE
349+
select BOOT_IMG_HASH_ALG_SHA512_ALLOW if !PSA_CORE_LITE
350350
select BOOT_ED25519_PSA_DEPENDENCIES
351351
select BOOT_X25519_PSA_DEPENDENCIES if BOOT_ENCRYPT_IMAGE
352352

0 commit comments

Comments
 (0)