nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_sw_aes_gcm_decrypt_setup()

psa_status_t cracen_sw_aes_gcm_decrypt_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 decryption operation.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[in]attributesKey attributes.
[in]key_bufferKey material.
[in]key_buffer_sizeSize of the key material.
[in]algAlgorithm to use.
Return values
PSA_SUCCESSOperation setup successfully.
PSA_ERROR_NOT_SUPPORTEDUnsupported algorithm or key type.
PSA_ERROR_INVALID_ARGUMENTInvalid key size.