#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aes_cbc.h>
Perform a single-shot software AES-CBC encryption.
- Parameters
-
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material. |
| [in] | key_buffer_size | Size of the key material. |
| [in] | alg | Algorithm (PSA_ALG_CBC_NO_PADDING or PSA_ALG_CBC_PKCS7). |
| [in] | iv | IV value (16 bytes). |
| [in] | iv_length | Length of IV (must be 16). |
| [in] | input | Input data to encrypt. |
| [in] | input_length | Length of the input data. |
| [out] | output | Output buffer. |
| [in] | output_size | Size of the output buffer. |
| [out] | output_length | Pointer to store the actual output length. |
- Return values
-
| PSA_SUCCESS | on success. |
| PSA_ERROR_INVALID_ARGUMENT | if any parameter is invalid. |
| PSA_ERROR_BUFFER_TOO_SMALL | if output buffer is too small. |
| PSA_ERROR_NOT_SUPPORTED | if the algorithm is not supported. |