OVMS3-idf/examples/peripherals/secure_element/atecc608_ecdsa/README.md
Aditya Patwardhan 423e600d46 secure_element: atecc608_ecdsa example
* Replaced crypotoauthlib with esp-cryptoauthlib
* Added menuconfig option for esp-tls about using HSM
* Added error codes for HSM in esp-tls,
* Added support to select different type of ATECC608A chips
* Added README, updated docs
* tcp_transport: Added option to enable secure_element for ssl

Closes https://github.com/espressif/esp-idf/issues/4432
2020-05-21 13:08:30 +05:30

2.4 KiB
Raw Blame History

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.