nrfxlib API 2.8.99
|
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.
[in] | operation | Active AEAD operation. |
[in] | ad_length | Size of the additional data in bytes. |
[in] | plaintext_length | Size of the plaintext to encrypt in bytes. |
PSA_SUCCESS | |
PSA_ERROR_INVALID_ARGUMENT | |
PSA_ERROR_CORRUPTION_DETECTED | |
PSA_ERROR_NOT_SUPPORTED |