otCryptoAesCcm() function
Performs AES CCM computation.
Syntax
void otCryptoAesCcm(const otCryptoKey *aKey,
uint8_t aTagLength,
const void *aNonce,
uint8_t aNonceLength,
const void *aHeader,
uint32_t aHeaderLength,
void *aPlainText,
void *aCipherText,
uint32_t aLength,
bool aEncrypt,
void *aTag);
Arguments
aKey
A pointer to the key.
aTagLength
Length of tag in bytes.
aNonce
A pointer to the nonce.
aNonceLength
Length of nonce in bytes.
Length of header in bytes.
aPlainText
A pointer to the plaintext.
aCipherText
A pointer to the ciphertext.
aLength
Plaintext length in bytes.
aEncrypt
`true` on encrypt and `false` on decrypt.
aTag
A pointer to the tag.