Code: Select all
/*
* Mbed TLS supports two formats for ECDH contexts (#mbedtls_ecdh_context
* defined in `ecdh.h`). For most applications, the choice of format makes
* no difference, since all library functions can work with either format,
* except that the new format is incompatible with MBEDTLS_ECP_RESTARTABLE.
* The new format used when this option is disabled is smaller
* (56 bytes on a 32-bit platform). In future versions of the library, it
* will support alternative implementations of ECDH operations.
* The new format is incompatible with applications that access
* context fields directly and with restartable ECP operations.
*/
Can someone confirm that they experience this same odd behavior? To find the settings I am talking about open the sdkconfig and search for mbedTLS and select the mbedTLS node. The settings in question are #9 "Use a backward compatible ECDH context (Experimental)." and #17 "Enable mbedTLS ecp restartable". The actual values in the file are CONFIG_MBEDTLS_ECDH_LEGACY_CONTEXT and CONFIG_MBEDTLS_ECP_RESTARTABLE.
Note: just switching the view doesn't cause the value to change, but closing and reopening the file does.