nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ cc3xx_aead_encrypt_setup()

psa_status_t cc3xx_aead_encrypt_setup ( cc3xx_aead_operation_t operation,
const psa_key_attributes_t *  attributes,
const uint8_t *  key_buffer,
size_t  key_buffer_size,
psa_algorithm_t  alg 
)

Set the key for a multipart authenticated encryption operation.

Parameters
[in]operationThe operation object to set up.
[in]attributesThe attributes of the key to be set.
[in]key_bufferThe buffer containing the key material.
[in]key_buffer_sizeSize of key_buffer in bytes.
[in]algThe AEAD algorithm (#PSA_ALG_IS_AEAD(alg) must be true).
Return values
#PSA_SUCCESS
#PSA_ERROR_INVALID_ARGUMENT
#PSA_ERROR_BAD_STATE
#PSA_ERROR_CORRUPTION_DETECTED
#PSA_ERROR_NOT_SUPPORTED