Encryption functionality available from the ESP-IDF

skanky
Posts: 20
Joined: Mon Nov 21, 2022 12:58 pm

Encryption functionality available from the ESP-IDF

Postby skanky » Tue Feb 28, 2023 3:16 pm

Our ESP32 S3 application needs to encrypt data we generate before it is stored to a SD card and then decrypt it later when copying the data off. We need to use a key pair to do this - one key stored in plain sight to encrypt the data, and the other private key provided to the ESP32 S3 at the point of needing to decrypt the data.
I can see the EDP-IDF has various encryption functionality built-in for flash memory, NV memory, TLS, WiFi etc, however on a quick scan through the docs I can't see a section covering using the encryption algorithms directly and what's available. I'm no encryption expert and was hoping there would be nice ready to go functions I can use. Is anyone able to point me towards any resources that cover this?

MicroController
Posts: 1734
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Encryption functionality available from the ESP-IDF

Postby MicroController » Tue Feb 28, 2023 11:22 pm

ESP-IDF comes with the mbedtls library, see https://docs.espressif.com/projects/esp ... edtls.html, docs: https://github.com/Mbed-TLS/mbedtls/blo ... started.md
Apparently, you can also swap in wolfSSL instead: https://github.com/espressif/esp-wolfSSL

skanky
Posts: 20
Joined: Mon Nov 21, 2022 12:58 pm

Re: Encryption functionality available from the ESP-IDF

Postby skanky » Wed Mar 01, 2023 7:50 pm

Thank you :-)

Who is online

Users browsing this forum: No registered users and 240 guests