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

◆ ocrypto_aes_ccm_encrypt()

void ocrypto_aes_ccm_encrypt ( uint8_t * ct,
uint8_t * tag,
size_t tag_len,
const uint8_t * pt,
size_t pt_len,
const uint8_t * key,
size_t size,
const uint8_t * nonce,
size_t n_len,
const uint8_t * aa,
size_t aa_len )

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

AES-CCM encryption.

Parameters
[out]ctCiphertext.
[out]tagAuthentication tag.
tag_lenTag length (4, 6, 8, 10, 12, 14, or 16).
ptPlaintext.
pt_lenPlaintext length, 0 <= pt_len < 2^(8*(15-n_len)).
keyAES key.
sizeKey size (16, 24, or 32).
nonceNonce.
n_lenNonce length, 7 <= n_len <= 13.
aaAdditional authentication data.
aa_lenAdditional authentication data length.
Remarks
ct may be same as pt.