#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aes_cbc.h>
Setup software AES-CBC operation.
- Parameters
-
| [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). |
- Return values
-
| 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. |