• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Feb-2022-

examples/H10-Feb-2022-1,377856

libs/H03-May-2022-1810

test/H03-May-2022-1,163960

README.mdH A D10-Feb-20221.8 KiB4430

README_32se.mdH A D10-Feb-20222.2 KiB5542

dummy_config_hH A D10-Feb-2022859 2523

dummy_test_paths.hH A D10-Feb-2022972 264

setup.shH A D10-Feb-20225.9 KiB166114

setup_win.batH A D10-Feb-20223.6 KiB8367

user_settings.hH A D10-Feb-20223.1 KiB9629

README.md

1# ESP-IDF port
2## Overview
3 ESP-IDF development framework with wolfSSL by setting *WOLFSSL_ESPIDF* definition
4
5Including the following examples:
6
7* Simple [tls_client](./examples/wolfssl_client/)/[server](./examples/wolfssl_server/)
8* Cryptographic [test](./examples/wolfssl_test/)
9* Cryptographic [benchmark](./examples/wolfssl_benchmark/)
10
11 The *user_settings.h* file enables some of the hardened settings.
12
13## Requirements
14 1. [ESP-IDF development framework](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/)
15
16    Note: This expects to use Linux version.
17
18## Setup for Linux
19 1. Run `setup.sh` at _/path/to_`/wolfssl/IDE/Espressif/ESP-IDF/` to deploy files into ESP-IDF tree
20    For Windows : Run `setup_win.bat` at `.\IDE\Espressif\ESP-IDF\`
21
22 2. Find Wolfssl files at _/path/to/esp_`/esp-idf/components/wolfssl/`
23
24 3. Find [Example programs](https://github.com/wolfSSL/wolfssl/tree/master/IDE/Espressif/ESP-IDF/examples) under _/path/to/esp_`/esp-idf/examples/protocols/wolfssl_xxx` (where xxx is the project name)
25
26 4. Uncomment out `#define WOLFSSL_ESPIDF` in _/path/to/esp_`/esp-idf/components/wolfssl/wolfssl/wolfcrypt/settings.h`
27    Uncomment out `#define WOLFSSL_ESPWROOM32` in _/path/to/esp_`/esp-idf/components/wolfssl/wolfssl/wolfcrypt/settings.h`
28
29    for example the default:
30    `~/esp/esp-idf/components/wolfssl/wolfssl/wolfcrypt/settings.h`
31
32## Configuration
33 1. The `user_settings.h` can be found in _/path/to/esp_`/esp-idf/components/wolfssl/include/user_settings.h`
34
35## Build examples
36 1. See README in each example folder
37
38## Support
39 For question please email [support@wolfssl.com]
40
41 Note: This is tested with :
42   - OS: Ubuntu 18.04.1 LTS and Microsoft Windows 10 Pro 10.0.19041 and well as WSL Ubuntu
43   - ESP-IDF: v4.4-dev-4031-gef98a363e3-dirty and v4.0.1-dirty
44   - Module : ESP32-WROOM-32

README_32se.md

1# DEMO program with ATECC608A on ESP-WROOM-32SE
2## Overview
3 Running demo programs with ATECC608A on 32SE by setting `WOLFSSL_ESPWROOM32SE` definition
4
5Including the following examples:
6
7* simple `tls_client`/`tls_server`
8* crypt benchmark
9
10 The `user_settings.h` file enables some of the hardened settings.
11
12## Requirements
131. ESP-IDF development framework: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/
14
152. Microchip CryptoAuthentication Library: https://github.com/MicrochipTech/cryptoauthlib
16
17## Setup
181. wolfSSL under ESP-IDF. Please see [README.md](https://github.com/wolfSSL/wolfssl/blob/master/IDE/Espressif/ESP-IDF/README.md)
192. CryptoAuthentication Library under ESP-IDF. Please see [README.md](https://github.com/miyazakh/cryptoauthlib_esp_idf/blob/master/README.md)
203. Uncomment out `#define WOLFSSL_ESPWROOM32SE` in `/path/to/wolfssl/wolfssl/wolfcrypt/settings.h`
21    * **Note:** Need to enable `WOLFSSL_ESPIDF`
22    * **Note:** crypt test will fail if enabled `WOLFSSL_ESPWROOM32SE`
23
24## Configuration
251. The `user_settings.h` can be found in `/path/to/esp-idf/components/wolfssl/include/user_settings.h`
26
27## Build examples
281. See `README` in each example folder
29
30## Benchmark
31w/o atecc608a
32```
33ECC      256 key gen         4 ops took 1.092 sec, avg 273.000 ms, 3.663 ops/sec
34ECDHE    256 agree           4 ops took 1.091 sec, avg 272.750 ms, 3.666 ops/sec
35ECDSA    256 sign            4 ops took 1.102 sec, avg 275.500 ms, 3.630 ops/sec
36ECDSA    256 verify          2 ops took 1.091 sec, avg 545.500 ms, 1.833 ops/sec
37```
38w/ atecc608a
39```
40ECC      256 key gen        11 ops took 1.074 sec, avg 97.636 ms, 10.242 ops/sec
41ECDHE    256 agree           6 ops took 1.068 sec, avg 178.000 ms, 5.618 ops/sec
42ECDSA    256 sign            8 ops took 1.009 sec, avg 126.125 ms, 7.929 ops/sec
43ECDSA    256 verify         14 ops took 1.079 sec, avg 77.071 ms, 12.975 ops/sec
44```
45
46## Support
47For question please email [support@wolfssl.com](mailto:support@wolfssl.com)
48
49Note: This is tested with the following condition:
50
51- Model    : ESP32-WROOM-32SE
52- ESP-IDF  : v3.3-beta1-39-g6cb37ecc5(commit hash : 6cb37ecc5)
53- CryptAuthLib: commit hash : c6b176e
54- OS       : Ubuntu 18.04.1 LTS (Bionic Beaver)
55