![]() |
nRF Connect SDK API 3.4.99
|
| 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 <cracen_sw_aes_cbc.h>
Setup software AES-CBC operation.
| [in,out] | operation | Pointer to the cipher operation structure. |
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material. |
| [in] | key_buffer_size | Size of the key material. |
| [in] | alg | Algorithm. |
| [in] | dir | Direction (CRACEN_ENCRYPT or CRACEN_DECRYPT). |
| PSA_SUCCESS | on success. |
| PSA_ERROR_INVALID_ARGUMENT | if any parameter is invalid. |
| PSA_ERROR_NOT_SUPPORTED | if the key type is not supported. |
| PSA_ERROR_INSUFFICIENT_MEMORY | if memory allocation fails. |