Skip to content

Commit 1ca0321

Browse files
committed
nrf_security: added benchmarking bypass config
Added a bypass Kconfig for benchmarking purposes. This is not a user-configureable option and should be used only in testing scenarios. Signed-off-by: Paul Fleury <paul.fleury@nordicsemi.no>
1 parent 5abd16f commit 1ca0321

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

subsys/nrf_security/src/drivers/Kconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
config PSA_CRYPTO_DRIVER_OBERON
1010
# The Oberon driver is required to provide HKDF needed for protected storage and bultin keys
1111
bool "Oberon PSA driver" if !(TFM_PARTITION_PROTECTED_STORAGE || TFM_CRYPTO_BUILTIN_KEYS)
12-
default y if !HAS_HW_NRF_CRACEN
12+
default y if !HAS_HW_NRF_CRACEN || PSA_CRYPTO_FORCE_OBERON
1313
help
1414
This configuration enables the usage of the Oberon PSA driver.
1515

@@ -28,6 +28,7 @@ config PSA_CRYPTO_DRIVER_CRACEN
2828
bool "Cracen PSA driver"
2929
depends on PSA_CRYPTO
3030
depends on HAS_HW_NRF_CRACEN
31+
depends on !PSA_CRYPTO_FORCE_OBERON
3132
# CRACEN uses the k_event_ API
3233
select EVENTS if MULTITHREADING
3334
default y
@@ -40,6 +41,12 @@ config PSA_CRYPTO_DRIVER_IRONSIDE
4041
Internal option selected by IronSide firmware to enable
4142
the IronSide PSA crypto driver.
4243

44+
config PSA_CRYPTO_FORCE_OBERON
45+
bool
46+
default n
47+
help
48+
Internal option selected by test applications for benchmarking purposes
49+
4350
menu "Choose DRBG algorithm"
4451
config PSA_WANT_ALG_CTR_DRBG
4552
bool "CTR_DRBG"

subsys/nrf_security/src/drivers/cracen/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ config CRACEN_HW_VERSION_LITE
1414
def_bool SOC_NRF54LM20A || SOC_NRF54LM20B || SOC_NRF54LC10A || SOC_NRF54LV10A || SOC_NRF7120_ENGA
1515

1616
config CRACEN_KMU_HW_PRESENT
17-
def_bool (SOC_SERIES_NRF54L && !SOC_NRF54LS05A && !SOC_NRF54LS05B) || SOC_SERIES_NRF71
17+
def_bool ((SOC_SERIES_NRF54L && !SOC_NRF54LS05A && !SOC_NRF54LS05B) || SOC_SERIES_NRF71) && !PSA_CRYPTO_FORCE_OBERON
1818

1919
config PSA_NEED_CRACEN_MULTIPART_WORKAROUNDS
2020
def_bool SOC_NRF54LM20A || SOC_NRF54LM20B

0 commit comments

Comments
 (0)