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

◆ ocrypto_aes_eax_decrypt()

int ocrypto_aes_eax_decrypt ( uint8_t * pt,
const uint8_t tag[16],
const uint8_t * ct,
size_t ct_len,
const uint8_t * key,
size_t size,
const uint8_t * iv,
size_t iv_len,
const uint8_t * aa,
size_t aa_len )

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

AES-EAX decryption.

Parameters
[out]ptPlaintext.
tagAuthentication tag.
ctCiphertext.
ct_lenLength of pt and ct.
keyAES key.
sizeKey size (16, 24, or 32 bytes).
ivInitial vector.
iv_lenInitial vector length.
aaAdditional authentication data.
aa_lenAdditional authentication data length.
Remarks
ct may be same as pt.
Return values
0If tag is valid.
-1Otherwise.