Skip to content

Commit e27c2df

Browse files
degjorvanordicjm
authored andcommitted
nrf_security: cracen_sw: Remove unused code
sx_blkcipher_create_aes_ctr is no longer used in cracen_sw. Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent 30bc596 commit e27c2df

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

subsys/nrf_security/src/drivers/cracen/cracen_sw/src/cracen_sw_cipher.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,6 @@ static psa_status_t initialize_cipher(cracen_cipher_operation_t *operation)
312312
int sx_status = SX_ERR_UNINITIALIZED_OBJ;
313313

314314
switch (operation->alg) {
315-
case PSA_ALG_CTR:
316-
if (IS_ENABLED(PSA_NEED_CRACEN_CTR_AES)) {
317-
sx_status = operation->dir == CRACEN_DECRYPT
318-
? sx_blkcipher_create_aesctr_dec(&operation->cipher,
319-
&operation->keyref,
320-
operation->iv)
321-
: sx_blkcipher_create_aesctr_enc(&operation->cipher,
322-
&operation->keyref,
323-
operation->iv);
324-
}
325-
break;
326315
case PSA_ALG_STREAM_CIPHER:
327316
if (IS_ENABLED(PSA_NEED_CRACEN_STREAM_CIPHER_CHACHA20)) {
328317
sx_status = operation->dir == CRACEN_DECRYPT

0 commit comments

Comments
 (0)