nrfxlib API 0.1.0
|
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.
ctx | Generator state. |
tag | Received authentication tag. |
tag_len | Length of tag . |
0 | If tag is valid. |
-1 | Otherwise. |