Skip to content

Commit dc6b33c

Browse files
de-nordiccarlescufi
authored andcommitted
bootloader: bl_crypto: Switch to PSA-Lite for B0
Configuration options that enable PSA lite with B0 NSIB. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 15946ac commit dc6b33c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

subsys/bootloader/bl_crypto/Kconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ config SB_CRYPTO_PSA_ED25519
8383
depends on NRF_SECURITY
8484
depends on CRACEN_LIB_KMU
8585
select SB_ED25519
86+
# Below depends on PSA_CORE_LITE
87+
select PSA_CORE_LITE_NSIB_ED25519_OPTIMIZATIONS
8688
select PSA_WANT_ALG_SHA_512
8789
select PSA_WANT_ALG_PURE_EDDSA
8890
select PSA_WANT_ECC_TWISTED_EDWARDS_255
8991
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
90-
select MBEDTLS_ENABLE_HEAP
9192
help
9293
Use PSA crypto for ed25519 support.
9394

@@ -116,6 +117,15 @@ config SB_CRYPTO_KMU_KEYS_REVOCATION
116117
help
117118
Automatically revoke previous generation key upon new valid key usage.
118119

120+
choice PSA_CORE
121+
default PSA_CORE_LITE if SB_CRYPTO_PSA_ED25519
122+
help
123+
This is copy of PSA_CORE choice from NRF Security Kconfig, as the
124+
only way to select an element from choice is to override default
125+
for it.
126+
127+
endchoice
128+
119129
choice SB_CRYPTO_HASH
120130
prompt "Hashing Implementation"
121131
default SB_CRYPTO_NONE if SB_CRYPTO_PSA_ED25519

0 commit comments

Comments
 (0)