esp-idf/examples/peripherals/secure_element/atecc608_ecdsa
Angus Gratton 66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
..
components esp-cryptoauthlib: Update submodule pointer to add a new feature. 2020-09-19 09:48:18 +05:30
main Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
CMakeLists.txt
Makefile Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
README.md
sdkconfig.defaults

README.md

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.