# otPlatCryptoAesCcmConfig


`#include <openthread/platform/crypto.h>`

Holds the parameters for a one-shot AES-CCM\* operation passed to `otPlatCryptoAesCcmProcessOneShot`.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-crypto-aes-ccm-config#structot_plat_crypto_aes_ccm_config_1aa23eb630a71ef0900880a0c867503a83` | `uint32_t` Length of the additional authenticated data (header) in bytes. |
| `https://openthread.io/reference/struct/ot-plat-crypto-aes-ccm-config#structot_plat_crypto_aes_ccm_config_1a2fcde20c79e8926291f34e5cde8c5e02` | `https://openthread.io/reference/struct/ot-crypto-key` The encryption key. |
| `https://openthread.io/reference/struct/ot-plat-crypto-aes-ccm-config#structot_plat_crypto_aes_ccm_config_1ad9a08659ac3544620ed3f7d446cf661b` | `const uint8_t *` Pointer to the nonce buffer (IEEE 802.15.4 CCM\* format, 13 bytes). |
| `https://openthread.io/reference/struct/ot-plat-crypto-aes-ccm-config#structot_plat_crypto_aes_ccm_config_1a8d1045a72b21692734187ff86e51014a` | `uint8_t` Length of `mNonce` in bytes. |
| `https://openthread.io/reference/struct/ot-plat-crypto-aes-ccm-config#structot_plat_crypto_aes_ccm_config_1a5ecec3bcea3f310bccf97a68911dcf7e` | `uint32_t` Payload length in bytes (excluding tag). |
| `https://openthread.io/reference/struct/ot-plat-crypto-aes-ccm-config#structot_plat_crypto_aes_ccm_config_1a85a3e48a2357a37c0bbf401a50b5f31c` | `uint8_t` Authentication tag length in bytes (even) |

## Public attributes

### mHeaderLength

```
uint32_t otPlatCryptoAesCcmConfig::mHeaderLength
```
Length of the additional authenticated data (header) in bytes.

### mKey

```
otCryptoKey otPlatCryptoAesCcmConfig::mKey
```
The encryption key.

### mNonce

```
const uint8_t * otPlatCryptoAesCcmConfig::mNonce
```
Pointer to the nonce buffer (IEEE 802.15.4 CCM\* format, 13 bytes).

### mNonceLength

```
uint8_t otPlatCryptoAesCcmConfig::mNonceLength
```
Length of `mNonce` in bytes.

### mPlainTextLength

```
uint32_t otPlatCryptoAesCcmConfig::mPlainTextLength
```
Payload length in bytes (excluding tag).

### mTagLength

```
uint8_t otPlatCryptoAesCcmConfig::mTagLength
```
Authentication tag length in bytes (even)

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).