![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_sw_aes_ccm_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_aes_ccm.h>
Verify the tag and finish the software AES-CCM decryption operation.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [out] | plaintext | Output buffer for remaining plaintext (typically none for CCM). |
| [in] | plaintext_size | Size of the plaintext buffer. |
| [out] | plaintext_length | Pointer to store the actual plaintext length. |
| [in] | tag | Authentication tag to verify. |
| [in] | tag_length | Length of the authentication tag. |
| PSA_SUCCESS | Authentication tag verified successfully. |
| PSA_ERROR_INVALID_SIGNATURE | Authentication tag verification failed. |
| PSA_ERROR_BAD_STATE | Operation not initialized. |