Skip to content

Commit

Permalink
nrf_security: Fix wrong ifdef for platform keys
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Vge0rge authored and rlubos committed Nov 22, 2024
1 parent 79e4539 commit 6039f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/nrf_security/src/drivers/cracen/cracenpsa/src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define NOT_ENABLED_CURVE (0)
#define NOT_ENABLED_HASH_ALG (0)

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

struct sx_pk_config_ik cfg = {};

#ifdef NRF54H_SERIES
#ifdef CONFIG_PSA_NEED_CRACEN_PLATFORM_KEYS
cfg.device_secret = DEVICE_SECRET_ADDRESS;
cfg.device_secret_sz = DEVICE_SECRET_LENGTH;

Expand Down

0 comments on commit 6039f93

Please sign in to comment.