10#include "nimble/porting/nimble/include/syscfg/syscfg.h"
11#include "nimble/porting/nimble/include/os/queue.h"
14#if MYNEWT_VAL(BLE_CRYPTO_STACK_MBEDTLS)
15#include "mbedtls/aes.h"
24#if MYNEWT_VAL(ENC_ADV_DATA)
26const char *ble_aes_ccm_hex(
const void *buf,
size_t len);
27int ble_aes_ccm_encrypt_be(
const uint8_t *key,
const uint8_t *plaintext, uint8_t *enc_data);
28int ble_aes_ccm_decrypt(
const uint8_t key[16], uint8_t nonce[13],
const uint8_t *enc_data,
29 size_t len,
const uint8_t *aad,
size_t aad_len,
30 uint8_t *plaintext,
size_t mic_size);
31int ble_aes_ccm_encrypt(
const uint8_t key[16], uint8_t nonce[13],
const uint8_t *enc_data,
32 size_t len,
const uint8_t *aad,
size_t aad_len,
33 uint8_t *plaintext,
size_t mic_size);
– Interface to an AES-128 implementation.