Skip to content

Commit be78887

Browse files
degjorvanordic-piks
authored andcommitted
nrf_security: cracen: Update cracen to support rename for LM20
Changed defines from 54l20 to 54lm20a Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent 56e8bdb commit be78887

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

subsys/nrf_security/src/drivers/cracen/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ config CRACEN_HW_VERSION_BASE
1111
def_bool SOC_SERIES_NRF54HX || SOC_NRF54L15 || SOC_NRF54L10 || SOC_NRF54L05
1212

1313
config CRACEN_HW_VERSION_LITE
14-
def_bool SOC_NRF54L20 || SOC_NRF54L09
14+
def_bool SOC_NRF54LM20A || SOC_NRF54L09
1515

1616
# Configure CRACEN_LOG_LEVEL
1717
module = CRACEN

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ psa_status_t cracen_aead_encrypt_setup(cracen_aead_operation_t *operation,
336336
const uint8_t *key_buffer, size_t key_buffer_size,
337337
psa_algorithm_t alg)
338338
{
339-
#ifdef CONFIG_SOC_NRF54L20
339+
#ifdef CONFIG_SOC_NRF54LM20A
340340
return PSA_ERROR_NOT_SUPPORTED;
341341
#else
342342
return setup(operation, CRACEN_ENCRYPT, attributes, key_buffer, key_buffer_size, alg);
@@ -348,7 +348,7 @@ psa_status_t cracen_aead_decrypt_setup(cracen_aead_operation_t *operation,
348348
const uint8_t *key_buffer, size_t key_buffer_size,
349349
psa_algorithm_t alg)
350350
{
351-
#ifdef CONFIG_SOC_NRF54L20
351+
#ifdef CONFIG_SOC_NRF54LM20A
352352
return PSA_ERROR_NOT_SUPPORTED;
353353
#else
354354
return setup(operation, CRACEN_DECRYPT, attributes, key_buffer, key_buffer_size, alg);
@@ -371,7 +371,7 @@ static psa_status_t set_nonce(cracen_aead_operation_t *operation, const uint8_t
371371
psa_status_t cracen_aead_set_nonce(cracen_aead_operation_t *operation, const uint8_t *nonce,
372372
size_t nonce_length)
373373
{
374-
#ifdef CONFIG_SOC_NRF54L20
374+
#ifdef CONFIG_SOC_NRF54LM20A
375375
return PSA_ERROR_NOT_SUPPORTED;
376376
#else
377377
psa_status_t status;
@@ -406,7 +406,7 @@ static void set_lengths(cracen_aead_operation_t *operation, size_t ad_length,
406406
psa_status_t cracen_aead_set_lengths(cracen_aead_operation_t *operation, size_t ad_length,
407407
size_t plaintext_length)
408408
{
409-
#ifdef CONFIG_SOC_NRF54L20
409+
#ifdef CONFIG_SOC_NRF54LM20A
410410
return PSA_ERROR_NOT_SUPPORTED;
411411
#else
412412
set_lengths(operation, ad_length, plaintext_length);
@@ -525,7 +525,7 @@ static psa_status_t cracen_aead_update_internal(cracen_aead_operation_t *operati
525525
psa_status_t cracen_aead_update_ad(cracen_aead_operation_t *operation, const uint8_t *input,
526526
size_t input_length)
527527
{
528-
#ifdef CONFIG_SOC_NRF54L20
528+
#ifdef CONFIG_SOC_NRF54LM20A
529529
return PSA_ERROR_NOT_SUPPORTED;
530530
#else
531531
return cracen_aead_update_internal(operation, input, input_length, NULL, 0, NULL, true);
@@ -536,7 +536,7 @@ psa_status_t cracen_aead_update(cracen_aead_operation_t *operation, const uint8_
536536
size_t input_length, uint8_t *output, size_t output_size,
537537
size_t *output_length)
538538
{
539-
#ifdef CONFIG_SOC_NRF54L20
539+
#ifdef CONFIG_SOC_NRF54LM20A
540540
return PSA_ERROR_NOT_SUPPORTED;
541541
#else
542542
/*
@@ -602,7 +602,7 @@ psa_status_t cracen_aead_finish(cracen_aead_operation_t *operation, uint8_t *cip
602602
size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag,
603603
size_t tag_size, size_t *tag_length)
604604
{
605-
#ifdef CONFIG_SOC_NRF54L20
605+
#ifdef CONFIG_SOC_NRF54LM20A
606606
return PSA_ERROR_NOT_SUPPORTED;
607607
#else
608608
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
@@ -653,7 +653,7 @@ psa_status_t cracen_aead_verify(cracen_aead_operation_t *operation, uint8_t *pla
653653
size_t plaintext_size, size_t *plaintext_length, const uint8_t *tag,
654654
size_t tag_length)
655655
{
656-
#ifdef CONFIG_SOC_NRF54L20
656+
#ifdef CONFIG_SOC_NRF54LM20A
657657
return PSA_ERROR_NOT_SUPPORTED;
658658
#else
659659
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static psa_status_t initialize_cipher(cracen_cipher_operation_t *operation)
327327

328328
static bool is_multi_part_supported(psa_algorithm_t alg)
329329
{
330-
if (IS_ENABLED(CONFIG_SOC_NRF54L20)) {
330+
if (IS_ENABLED(CONFIG_SOC_NRF54LM20A)) {
331331
switch (alg) {
332332
case PSA_ALG_ECB_NO_PADDING:
333333
return IS_ENABLED(PSA_NEED_CRACEN_ECB_NO_PADDING_AES);

subsys/nrf_security/src/drivers/cracen/silexpk/include/silexpk/iomem.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void sx_wrpkmem(void *dst, const void *src, size_t sz);
4646
* Will be modified after this call
4747
* @param[in] input_byte The byte value to be written.
4848
*/
49-
#ifndef CONFIG_SOC_NRF54L20
49+
#ifndef CONFIG_SOC_NRF54LM20A
5050
static inline void sx_wrpkmem_byte(void *dst, char input_byte)
5151
{
5252
volatile char *d = (volatile char *)dst;

subsys/nrf_security/src/drivers/cracen/silexpk/src/iomem.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <stdint.h>
88
#include <silexpk/iomem.h>
99

10-
#ifndef CONFIG_SOC_NRF54L20
10+
#ifndef CONFIG_SOC_NRF54LM20A
1111

1212
#define PTR_ALIGNMENT(ptr, type) (((uintptr_t)ptr) & (sizeof(type) - 1))
1313
#define IS_NATURAL_ALIGNED(ptr, type) !PTR_ALIGNMENT(ptr, type)

subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik/pk_baremetal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <security/cracen.h>
2424
#include <nrf_security_mutexes.h>
2525

26-
#if CONFIG_CRACEN_HW_VERSION_LITE && !CONFIG_SOC_NRF54L20 && !CONFIG_SOC_NRF54L09
26+
#if CONFIG_CRACEN_HW_VERSION_LITE && !CONFIG_SOC_NRF54LM20A && !CONFIG_SOC_NRF54L09
2727
#error Check to see if the current board needs the IKG-PKE interrupt workaround or not, \
2828
then update this error
2929
#endif

0 commit comments

Comments
 (0)