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

◆ cracen_sw_aes_primitive()

psa_status_t cracen_sw_aes_primitive ( struct sxblkcipher * blkciph,
const struct sxkeyref * key,
const uint8_t * input,
uint8_t * output )

#include <cracen_sw_common.h>

Perform a single AES block encryption operation.

This function is designed for use as an AES primitive in CRACEN software workarounds that require it. The caller must reserve CRACEN first, with sx_hw_reserve(&blkciph->dma, SX_HW_RESERVE_CM_ENABLED), and can then run any number of blocks before releasing it with sx_hw_release().

Parameters
blkciphThe block cipher struct.
keyThe AES key reference.
inputPointer to the input block.
outputPointer to a 16-byte output buffer.
Return values
psa_status_tPSA_SUCCESS on success, error code otherwise.