#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aead.h>
Perform a single software AEAD decryption.
- Parameters
-
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material. |
| [in] | key_buffer_size | Size of key material. |
| [in] | alg | AEAD algorithm. |
| [in] | nonce | Nonce/IV. |
| [in] | nonce_length | Length of nonce. |
| [in] | additional_data | Additional data. |
| [in] | additional_data_length | Length of additional data. |
| [in] | ciphertext | Ciphertext and tag to decrypt. |
| [in] | ciphertext_length | Length of ciphertext (including tag). |
| [out] | plaintext | Output buffer for plaintext. |
| [in] | plaintext_size | Size of plaintext buffer. |
| [out] | plaintext_length | Pointer to store actual plaintext length. |
- Return values
-
| PSA_SUCCESS | Decryption and verification completed successfully. |
| PSA_ERROR_NOT_SUPPORTED | Unsupported algorithm. |
| PSA_ERROR_INVALID_SIGNATURE | Tag verification failed. |
| PSA_ERROR_BUFFER_TOO_SMALL | Output buffer too small. |
| PSA_ERROR_INVALID_ARGUMENT | Invalid parameters. |