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

◆ cracen_sw_aes_gcm_verify()

psa_status_t cracen_sw_aes_gcm_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_aes_gcm.h>

Verify the tag and finish the software AES-GCM decryption operation.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[out]plaintextOutput buffer for remaining plaintext (typically none for CCM).
[in]plaintext_sizeSize of the plaintext buffer.
[out]plaintext_lengthPointer to store the actual plaintext length.
[in]tagAuthentication tag to verify.
[in]tag_lengthLength of the authentication tag.
Return values
PSA_SUCCESSAuthentication tag verified successfully.
PSA_ERROR_INVALID_SIGNATUREAuthentication tag verification failed.
PSA_ERROR_BAD_STATEOperation not initialized.