@@ -475,29 +475,11 @@ static psa_status_t initialize_cipher(cracen_cipher_operation_t *operation)
475
475
return silex_statuscodes_to_psa (sx_status );
476
476
}
477
477
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
-
492
478
psa_status_t cracen_cipher_encrypt_setup (cracen_cipher_operation_t * operation ,
493
479
const psa_key_attributes_t * attributes ,
494
480
const uint8_t * key_buffer , size_t key_buffer_size ,
495
481
psa_algorithm_t alg )
496
482
{
497
- if (!is_multi_part_supported (alg )) {
498
- return PSA_ERROR_NOT_SUPPORTED ;
499
- }
500
-
501
483
#if defined(CONFIG_SOC_NRF54LV10A ) && defined(CONFIG_PSA_NEED_CRACEN_CTR_AES )
502
484
/* Route AES_CTR to software implementation due to 16-bit counter limitation */
503
485
if (alg == PSA_ALG_CTR ) {
@@ -513,9 +495,6 @@ psa_status_t cracen_cipher_decrypt_setup(cracen_cipher_operation_t *operation,
513
495
const uint8_t * key_buffer , size_t key_buffer_size ,
514
496
psa_algorithm_t alg )
515
497
{
516
- if (!is_multi_part_supported (alg )) {
517
- return PSA_ERROR_NOT_SUPPORTED ;
518
- }
519
498
520
499
#if defined(CONFIG_SOC_NRF54LV10A ) && defined(CONFIG_PSA_NEED_CRACEN_CTR_AES )
521
500
/* Route AES_CTR to software implementation due to 16-bit counter limitation */
0 commit comments