1 #ifndef AES_CCM_H 2 #define AES_CCM_H 3 4 #include <stdint.h> 5 #include <stdio.h> 6 7 // CCM Encrypt & Decrypt from Zephyr Project 8 int bt_mesh_ccm_decrypt(const uint8_t key[16], uint8_t nonce[13], const uint8_t *enc_msg, size_t msg_len, 9 const uint8_t *aad, size_t aad_len, uint8_t *out_msg, size_t mic_size); 10 11 int bt_mesh_ccm_encrypt(const uint8_t key[16], uint8_t nonce[13], const uint8_t *msg, size_t msg_len, 12 const uint8_t *aad, size_t aad_len, uint8_t *out_msg, size_t mic_size); 13 14 #endif 15