nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_aes_gcm_final_dec()

int ocrypto_aes_gcm_final_dec ( ocrypto_aes_gcm_ctx *  ctx,
const uint8_t *  tag,
size_t  tag_len 
)

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

AES-GCM final decoder step.

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

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