MbedTLS and external cryptochip

stefano664
Posts: 9
Joined: Tue Feb 02, 2021 8:06 am

MbedTLS and external cryptochip

Postby stefano664 » Tue Feb 02, 2021 8:14 am

Hi guys,
I'm trying to use my ESP32-WROOM with an external cryptochip (in specific an OPTIGA TRUST M). I have some problems with the connection of mbedTLS crypto routines to alternative OPTIGA versions. More specific I have two issue:

1) I need to activate some compiler options such as MBEDTLS_SSL_ASYNC_PRIVATE, but they are not present in menuconfig and I won'tmodify "mbedTLS/esp_config.h" in idf folder. How can I use a different (costomized) config file? Or also how can I define my options elsewhere?

2) I need to rewrite some functions, for example mbedtls_ecdh_gen_public. I can write and compile a new function but the compiler link code to the ESP version, that is different by mine. How I can solve?

Thanks a lot,
Stefano

Who is online

Users browsing this forum: Bing [Bot], Teh2024 and 118 guests