A small ESP-IDF app for the ESP32 using the libmicrofido2.
- Pull the IDF Docker Image:
docker pull espressif/idf
- Alternatively, if you don't want to use Docker, install ESP-IDF manually.
- Run
docker run --rm -v $PWD/../../:/project -w /project/examples/esp32 espressif/idf idf.py build
. - To get an interactive shell, run
docker run --rm -v $PWD/../../:/project -w /project/examples/esp32 -it espressif/idf
.
- Connect the ESP32 to your computer and find its device node at
/dev/ttyUSBX
(note the value ofX
and replace it in the following command). - Run
docker run --rm -v $PWD/../../:/project -w /project/examples/esp32 --device /dev/ttyUSBX espressif/idf idf.py flash
.
By default, hardware accelerated AES, partially AES-GCM, SHA-256, and SHA-512 are enabled.
As of now (2022), the ESP32C3 does not have hardware support for Ed25519.
To disable these, set CONFIG_USE_HW_CRYPTO=n
in your sdkconfig
.