nrfxlib API 2.8.99
|
void ocrypto_aes_eax_encrypt | ( | uint8_t * | ct, |
uint8_t | tag[16], | ||
const uint8_t * | pt, | ||
size_t | pt_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 encryption.
[out] | ct | Ciphertext. |
[out] | tag | Authentication tag. |
pt | Plaintext. | |
pt_len | Length of pt and ct . | |
key | AES key. | |
size | Key size (16, 24, or 32 bytes). | |
iv | Initial vector. | |
iv_len | Initial vector length. | |
aa | Additional authentication data. | |
aa_len | Additional authentication data length. |
ct
may be same as pt
.