![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_aead_verify | ( | cracen_aead_operation_t * | operation, |
| uint8_t * | plaintext, | ||
| size_t | plaintext_size, | ||
| size_t * | plaintext_length, | ||
| const uint8_t * | tag, | ||
| size_t | tag_length ) |
#include <cracen_sw_aead.h>
Finish the software AEAD decryption and verify the tag.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [out] | plaintext | Final plaintext output buffer. |
| [in] | plaintext_size | Size of plaintext buffer. |
| [out] | plaintext_length | Pointer to store actual plaintext length. |
| [in] | tag | Tag to verify. |
| [in] | tag_length | Length of the tag. |
| PSA_SUCCESS | Decryption finished successfully; tag verified. |
| PSA_ERROR_NOT_SUPPORTED | Unsupported algorithm. |
| PSA_ERROR_INVALID_SIGNATURE | Tag verification failed. |
| PSA_ERROR_BAD_STATE | Operation not initialized. |