nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_sw_aes_ecb_decrypt()

psa_status_t cracen_sw_aes_ecb_decrypt ( struct sxblkcipher * blkciph,
const struct sxkeyref * key,
const uint8_t * input,
size_t input_length,
uint8_t * output,
size_t output_size,
size_t * output_length )

#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_common.h>

Decrypt a single AES block using ECB mode.

This function is designed for CRACEN software workarounds that need AES-ECB decryption functionality.

Parameters
blkciphThe block cipher struct.
keyThe AES key reference.
inputPointer to the input block.
input_lengthLength of the input block.
outputPointer to a 16-byte output buffer.
output_sizeSize of the output buffer.
output_lengthPointer where to store the actual output length.
Return values
psa_status_tPSA_SUCCESS on success, error code otherwise.