Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
main/ | 11-Mar-2024 | - | 252 | 175 | ||
CMakeLists.txt | D | 11-Mar-2024 | 239 | 7 | 5 | |
Makefile | D | 11-Mar-2024 | 186 | 9 | 2 | |
README.md | D | 11-Mar-2024 | 2.9 KiB | 55 | 31 | |
sdkconfig.defaults | D | 11-Mar-2024 | 96 | 4 | 3 |
README.md
1| Supported Targets | ESP32 | 2| ----------------- | ----- | 3 4# ECDSA sign/verify Example with ESP32-WROOM-32SE 5 6## Description 7 8(See the README.md file in the upper level 'examples' directory for more information about examples.) 9 10This example requires [ESP32-WROOM-32SE](https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32se_datasheet_en.pdf) which has Microchip's [ATECC608A](https://www.microchip.com/wwwproducts/en/ATECC608A) (Secure Element) integrated on the module. 11 12The example performs `ECDSA sign/verify` functions on sample data using hardware private key stored in ATECC608A chip. If you want to use bare `ATECC608A` chip (Secure Element) with `ESP32-WROOM-32` module by making external connections, please refer [this](https://github.com/espressif/esp-cryptoauthlib/blob/master/esp_cryptoauth_utility/README.md#using-atecc608a-with-esp32-wroom-32) for details. 13 14## How to use example 15 16Before project configuration and build, be sure to set the correct chip target using `idf.py set-target <chip_name>`. 17 18### Hardware Required 19 20To get started you will need a `ESP32-WROOM-32SE` development board which integrates Microchip’s ATECC608A CryptoAuth chip in the module. 21 22* A development board with ESP32-WROOM-32SE SoC or an custom board with the `ATECC608A` IC. 23* A USB cable for Power supply and programming 24 25### Configure the project 26 27ATECC608A chip on ESP32-WROOM-32SE should be configured to run the example, for details on configuration of ATECC608A chip, please refer [esp_cryptoauth_utility](https://github.com/espressif/esp-cryptoauthlib/blob/master/esp_cryptoauth_utility/README.md#esp_cryptoauth_utility) 28 29Open the project configuration menu (`idf.py menuconfig`). 30 31In the `Component config -> esp-cryptoauthlib` menu: 32 33* Use `Choose the type of ATECC608A chip` to set the Crypto IC type [1]. 34* Use `Enable Hardware ECDSA keys for mbedTLS` Enable Hardware ECDSA. 35 * Set `Enable ATECC608A sign operations in mbedTLS` to use Hardware ECDSA sign. 36 * Set `Enable ATECC608A verify operations in mbedTLS` to use Hardware ECDSA verify. 37* Set `I2C SDA pin used to communicate with the ATECC608A`. 38* Set `I2C SCL pin used to communicate with the ATECC608A`. 39 40[1]: for more details refer [Find ATECC608A chip type](https://github.com/espressif/esp-cryptoauthlib/blob/master/esp_cryptoauth_utility/README.md#find-type-of-atecc608a-chip-connected-to-esp32-wroom32-se). 41 42### Build and Flash 43 44Build the project and flash it to the board, then run the monitor tool to view the serial output: 45 46Run `idf.py -p PORT flash monitor` to build, flash and monitor the project. 47 48(To exit the serial monitor, type ``Ctrl-]``.) 49 50See the [Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html) for all the steps to configure and use the ESP-IDF to build projects. 51 52## Troubleshooting 53 54For any technical queries, please open an [issue](https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon. 55