Skip to content

Commit 86d098b

Browse files
degjorvanordicjm
authored andcommitted
nrf_security: CRACEN: Remove function that is not needed
is_multipart_support is no longer useful so removed it. Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent c336bac commit 86d098b

File tree

1 file changed

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

1 file changed

+0
-21
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -475,29 +475,11 @@ static psa_status_t initialize_cipher(cracen_cipher_operation_t *operation)
475475
return silex_statuscodes_to_psa(sx_status);
476476
}
477477

478-
static bool is_multi_part_supported(psa_algorithm_t alg)
479-
{
480-
if (IS_ENABLED(CONFIG_SOC_NRF54LM20A)) {
481-
switch (alg) {
482-
case PSA_ALG_ECB_NO_PADDING:
483-
return IS_ENABLED(PSA_NEED_CRACEN_ECB_NO_PADDING_AES);
484-
default:
485-
return false;
486-
}
487-
} else {
488-
return true;
489-
}
490-
}
491-
492478
psa_status_t cracen_cipher_encrypt_setup(cracen_cipher_operation_t *operation,
493479
const psa_key_attributes_t *attributes,
494480
const uint8_t *key_buffer, size_t key_buffer_size,
495481
psa_algorithm_t alg)
496482
{
497-
if (!is_multi_part_supported(alg)) {
498-
return PSA_ERROR_NOT_SUPPORTED;
499-
}
500-
501483
#if defined(CONFIG_SOC_NRF54LV10A) && defined(CONFIG_PSA_NEED_CRACEN_CTR_AES)
502484
/* Route AES_CTR to software implementation due to 16-bit counter limitation */
503485
if (alg == PSA_ALG_CTR) {
@@ -513,9 +495,6 @@ psa_status_t cracen_cipher_decrypt_setup(cracen_cipher_operation_t *operation,
513495
const uint8_t *key_buffer, size_t key_buffer_size,
514496
psa_algorithm_t alg)
515497
{
516-
if (!is_multi_part_supported(alg)) {
517-
return PSA_ERROR_NOT_SUPPORTED;
518-
}
519498

520499
#if defined(CONFIG_SOC_NRF54LV10A) && defined(CONFIG_PSA_NEED_CRACEN_CTR_AES)
521500
/* Route AES_CTR to software implementation due to 16-bit counter limitation */

0 commit comments

Comments
 (0)