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