esp-idf/examples/peripherals/secure_element/atecc608_ecdsa
2020-07-23 16:08:14 +00:00
..
components esp32/secure_element: update esp-cryptoauthlib submodule pointer 2020-07-23 16:08:14 +00:00
main secure_element: atecc608_ecdsa example 2020-05-21 13:08:30 +05:30
CMakeLists.txt secure_element: atecc608_ecdsa example 2020-05-21 13:08:30 +05:30
Makefile secure_element: atecc608_ecdsa example 2020-05-21 13:08:30 +05:30
README.md secure_element: atecc608_ecdsa example 2020-05-21 13:08:30 +05:30
sdkconfig.defaults secure_element: atecc608_ecdsa example 2020-05-21 13:08:30 +05:30

Supported Targets ESP32

ESP32-WROOM-32SE ECDSA sign/verify example

Description

This example requires ESP32-WROOM-32SE which has Microchip's ATECC608A (Secure Element) integrated on the module. The 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 for details. See the README.md file in the upper level examples directory for more information about examples.

Hardware

To get started you will need a ESP32-WROOM-32SE development board which integrates Microchips ATECC608A CryptoAuth chip in the module.

Configuration

ATECC608A chip on ESP32-WROOM-32SE should be configured to run the example, for details on configuration of ATECC608A chip, please refer esp_cryptoauth_utility

  1. Set type of ATECC608A chip in menuconfig.
  • menuconfig->Component config->esp-cryptoauthlib->Choose Type of ATECC608A chip. for more details refer Find ATECC608A chip type.
  1. Enable Hardware ECDSA sign/verify in menuconfig as by enabling following. (Enabled by default for this example)
  • menuconfig->Component config->esp-cryptoauthlib->Enable Hardware ECDSA keys for mbedTLS
  • menuconfig->Component config->esp-cryptoauthlib->Enable ATECC608A sign operations in mbedTLS
  • menuconfig->Component config->esp-cryptoauthlib->Enable ATECC608A verify operations in mbedTLS

Build and Flash

Run following command to build and flash the project.

idf.py -p PORT flash monitor

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.