nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_aes_ccm_final_dec()

int ocrypto_aes_ccm_final_dec ( ocrypto_aes_ccm_ctx * ctx,
const uint8_t * tag,
size_t tag_len )

#include <crypto/nrf_oberon/include/ocrypto_aes_ccm.h>

AES-CCM final decoder step.

The generator state ctx is used to finalize the decryption and check the tag.

Parameters
ctxGenerator state.
tagReceived authentication tag.
tag_lenLength of tag.
Return values
0If tag is valid.
-1Otherwise.