![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_sw_aes_gcm_encrypt_setup | ( | cracen_aead_operation_t * | operation, |
| const psa_key_attributes_t * | attributes, | ||
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg ) |
#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aes_gcm.h>
Set up the software AES-GCM encryption operation.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material. |
| [in] | key_buffer_size | Size of the key material. |
| [in] | alg | Algorithm to use. |
| PSA_SUCCESS | Operation setup successfully. |
| PSA_ERROR_NOT_SUPPORTED | Unsupported algorithm or key type. |
| PSA_ERROR_INVALID_ARGUMENT | Invalid key size. |