![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_sw_aes_ctr_crypt | ( | 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_ctr.h>
Perform a single-shot software AES-CTR encryption or decryption.
| attributes | Key attributes. |
| key_buffer | Key material. |
| key_buffer_size | Size of the key material. |
| alg | PSA_ALG_CTR or PSA_ALG_CCM_STAR_NO_TAG. |
| iv | 16-octet counter block for CTR, or the 13-octet nonce for CCM*. |
| iv_length | Length of iv. |
| input | Input data to encrypt or decrypt. |
| input_length | Length of input data. |
| output | Output buffer. |
| output_size | Size of output buffer. |
| output_length | Pointer to store the actual output length. |
| psa_status_t | PSA_SUCCESS on success, error code otherwise. |