You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Default profile. Do not remove items unless there are serious security
* concerns. */
const mbedtls_x509_crt_profile mbedtls_x509_crt_profile_default =
{
/* Hashes from SHA-256 and above. Note that this selection
* should be aligned with ssl_preset_default_hashes in ssl_tls.c. */
MBEDTLS_X509_ID_FLAG(MBEDTLS_MD_SHA256) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_MD_SHA384) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_MD_SHA512),
0xFFFFFFF, /* Any PK alg */
#if defined(MBEDTLS_ECP_C)
/* Curves at or above 128-bit security level. Note that this selection
* should be aligned with ssl_preset_default_curves in ssl_tls.c. */
MBEDTLS_X509_ID_FLAG(MBEDTLS_ECP_DP_SECP256R1) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_ECP_DP_SECP384R1) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_ECP_DP_SECP521R1) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_ECP_DP_BP256R1) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_ECP_DP_BP384R1) |
MBEDTLS_X509_ID_FLAG(MBEDTLS_ECP_DP_BP512R1) |
0,
#else
0,
#endif
2048,
};
In summary:
Md method MBEDTLS_MD_SHA224 is no longer supported
Only following curves are allowed now:
MBEDTLS_ECP_DP_SECP256R1
MBEDTLS_ECP_DP_SECP384R1
MBEDTLS_ECP_DP_SECP521R1
MBEDTLS_ECP_DP_BP256R1
MBEDTLS_ECP_DP_BP384R1
MBEDTLS_ECP_DP_BP512R1
We need to determine if we should use old profile or following new profile.
The text was updated successfully, but these errors were encountered:
In
mbedtls
3.X
, they changed thembedtls_x509_crt_profile_default
From https://github.com/Mbed-TLS/mbedtls/blob/981743de6fcdbe672e482b6fd724d31d0a0d2476/library/x509_crt.c#L89-L101 :
to https://github.com/Mbed-TLS/mbedtls/blob/1873d3bfc2da771672bd8e7e8f41f57e0af77f33/library/x509_crt.c#L96-L118 :
In summary:
MBEDTLS_MD_SHA224
is no longer supportedWe need to determine if we should use old profile or following new profile.
The text was updated successfully, but these errors were encountered: