nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_aead_verify()

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 <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aead.h>

Finish the software AEAD decryption and verify the tag.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[out]plaintextFinal plaintext output buffer.
[in]plaintext_sizeSize of plaintext buffer.
[out]plaintext_lengthPointer to store actual plaintext length.
[in]tagTag to verify.
[in]tag_lengthLength of the tag.
Return values
PSA_SUCCESSDecryption finished successfully; tag verified.
PSA_ERROR_NOT_SUPPORTEDUnsupported algorithm.
PSA_ERROR_INVALID_SIGNATURETag verification failed.
PSA_ERROR_BAD_STATEOperation not initialized.