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

◆ cracen_sw_aes_cbc_setup()

psa_status_t cracen_sw_aes_cbc_setup ( cracen_cipher_operation_t * operation,
const psa_key_attributes_t * attributes,
const uint8_t * key_buffer,
size_t key_buffer_size,
psa_algorithm_t alg,
enum cipher_operation dir )

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

Setup software AES-CBC operation.

Parameters
[in,out]operationPointer to the cipher operation structure.
[in]attributesKey attributes.
[in]key_bufferKey material.
[in]key_buffer_sizeSize of the key material.
[in]algAlgorithm.
[in]dirDirection (CRACEN_ENCRYPT or CRACEN_DECRYPT).
Return values
PSA_SUCCESSon success.
PSA_ERROR_INVALID_ARGUMENTif any parameter is invalid.
PSA_ERROR_NOT_SUPPORTEDif the key type is not supported.
PSA_ERROR_INSUFFICIENT_MEMORYif memory allocation fails.