Best way to do AES CCM (ESP32)?

Hi all, I'm new here, hope I put this question in the correct category.. :slight_smile:

Anyway, I need to connect with another device I have developed, and 'talk' to it over serial. However, I need AES128 CCM in order to do so (other device is a TI BLE thingy). I can see there's a few encryption libraries doing CBC, but none of them mentions CCM. But maybe it is possible regardless?
If not, I suppose I need to use some other means to encrypt/decrypt. It can be all software, speed is not an issue. It will need to run on an esp32.

So, any advice or pointer, really, would be useful.

Hi @vespaman66 ,

Welcome to the forum..

espnow uses aes128 ccm...
looks like it's using functions inside of Mbed TLS..

esp32 - api-reference - protocols - mbedtls
here's a link to the fork their using..
ESP32 - mbedtls-3.5.0-idf

good luck.. ~q

Hi @qubits-us thanks!

Looking into that, it feels like a beast for my small need. :cold_sweat:
I'll dig around a bit, to see if there's something less complex/intimidating :slight_smile:

It seems that wolf_ssl handles CCM, and is available for Arduino. That might be a route forward for me, if nothing even simpler arrives on the horizon..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.