Enabling the use of EC keys when doing TLS with mbedTLS backend. - #3892
Enabling the use of EC keys when doing TLS with mbedTLS backend.#3892DeuxVis wants to merge 1 commit into
Conversation
| SSL_SET_OPTION(key_passwd)); | ||
| if(ret == 0 && !mbedtls_pk_can_do(&BACKEND->pk, MBEDTLS_PK_RSA)) | ||
| if(ret == 0 && !( mbedtls_pk_can_do(&BACKEND->pk, MBEDTLS_PK_RSA) | ||
| || mbedtls_pk_can_do(&BACKEND->pk, MBEDTLS_PK_ECKEY))) |
There was a problem hiding this comment.
Is this MBEDTLS_PK_ECKEY flag supported on all mbedtls versions or is there a risk that this will break the build for some?
There was a problem hiding this comment.
A quick skim of the code seems to imply that usage of MBEDTLS_PK_ECKEY depends on MBEDTLS_ECP_C.
There was a problem hiding this comment.
Is this
MBEDTLS_PK_ECKEYflag supported on all mbedtls versions or is there a risk that this will break the build for some?
If you mean historically, I think it dates back from the polarssl days : Mbed-TLS/mbedtls@211a64c
So it probably have been available in all mbedtls versions.
There was a problem hiding this comment.
Yes confirmed, It then have been renamed to the actual name - without polarssl reference - in mbedtls release 2.0 : https://github.com/ARMmbed/mbedtls/blob/4cb87f409df0ddd878ea50cfca7dc8735ee574f2/include/mbedtls/pk.h#L74
|
Thanks! |
No description provided.