nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ cc3xx_aead_set_lengths()

psa_status_t cc3xx_aead_set_lengths ( cc3xx_aead_operation_t * operation,
size_t ad_length,
size_t plaintext_length )

Declare the lengths of the message and additional data for AEAD.

Parameters
[in]operationActive AEAD operation.
[in]ad_lengthSize of the additional data in bytes.
[in]plaintext_lengthSize of the plaintext to encrypt in bytes.
Return values
PSA_SUCCESS
PSA_ERROR_INVALID_ARGUMENT
PSA_ERROR_CORRUPTION_DETECTED
PSA_ERROR_NOT_SUPPORTED