![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_sw_aes_cbc_encrypt | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg, | ||
| const uint8_t * | iv, | ||
| size_t | iv_length, | ||
| const uint8_t * | input, | ||
| size_t | input_length, | ||
| uint8_t * | output, | ||
| size_t | output_size, | ||
| size_t * | output_length ) |
#include <cracen_sw_aes_cbc.h>
Perform a single-shot software AES-CBC encryption.
| [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. |
| 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. |