#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_aead.h>
Finish an AEAD decryption operation and verify the tag.
- Parameters
-
| [in,out] | operation | AEAD operation context. |
| [out] | plaintext | Buffer to store the final plaintext. |
| [in] | plaintext_size | Size of the plaintext buffer in bytes. |
| [out] | plaintext_length | Length of the generated plaintext in bytes. |
| [in] | tag | Authentication tag to verify. |
| [in] | tag_length | Length of the tag in bytes. |
- Return values
-
| PSA_SUCCESS | The operation completed successfully and the tag is valid. |
| PSA_ERROR_INVALID_SIGNATURE | The authentication tag is invalid. |
| PSA_ERROR_BAD_STATE | The operation is not in a valid state. |
| PSA_ERROR_BUFFER_TOO_SMALL | The plaintext buffer is too small. |