[−][src]Function openthread_sys::otCryptoAesCcm
pub unsafe extern "C" fn otCryptoAesCcm(
aKey: *const u8,
aKeyLength: u16,
aTagLength: u8,
aNonce: *const c_void,
aNonceLength: u8,
aHeader: *const c_void,
aHeaderLength: u32,
aPlainText: *mut c_void,
aCipherText: *mut c_void,
aLength: u32,
aEncrypt: bool,
aTag: *mut c_void
)
This method performs AES CCM computation.
@param[in] aKey A pointer to the key. @param[in] aKeyLength Length of the key in bytes. @param[in] aTagLength Length of tag in bytes. @param[in] aNonce A pointer to the nonce. @param[in] aNonceLength Length of nonce in bytes.
@param[in] aHeader A pointer to the header. @param[in] aHeaderLength Length of header in bytes.
@param[inout] aPlainText A pointer to the plaintext.
@param[inout] aCipherText A pointer to the ciphertext.
@param[in] aLength Plaintext length in bytes.
@param[in] aEncrypt true
on encrypt and false
on decrypt.
@param[out] aTag A pointer to the tag.