MbedTLS and external cryptochip
Posted: 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
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