Skip to content

Commit 6039f93

Browse files
Vge0rgerlubos
authored andcommitted
nrf_security: Fix wrong ifdef for platform keys
The NRF54H_SERIES define does not exist inside the secure domain build. So we replace this with the CONFIG_PSA_NEED_CRACEN_PLATFORM_KEYS which exists in the build. Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent 79e4539 commit 6039f93

File tree

1 file changed

+2
-2
lines changed
  • subsys/nrf_security/src/drivers/cracen/cracenpsa/src

1 file changed

+2
-2
lines changed

subsys/nrf_security/src/drivers/cracen/cracenpsa/src/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define NOT_ENABLED_CURVE (0)
3232
#define NOT_ENABLED_HASH_ALG (0)
3333

34-
#ifdef NRF54H_SERIES
34+
#ifdef CONFIG_PSA_NEED_CRACEN_PLATFORM_KEYS
3535
/* Address from the IPS. May come from the MDK in the future. */
3636
#define DEVICE_SECRET_LENGTH 4
3737
#define DEVICE_SECRET_ADDRESS ((uint32_t *)0x0E001620)
@@ -675,7 +675,7 @@ int cracen_prepare_ik_key(const uint8_t *user_data)
675675

676676
struct sx_pk_config_ik cfg = {};
677677

678-
#ifdef NRF54H_SERIES
678+
#ifdef CONFIG_PSA_NEED_CRACEN_PLATFORM_KEYS
679679
cfg.device_secret = DEVICE_SECRET_ADDRESS;
680680
cfg.device_secret_sz = DEVICE_SECRET_LENGTH;
681681

0 commit comments

Comments
 (0)