mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 06:05:28 +00:00
List Montgomery curves in mbedtls_ecp_curve_list()
mbedtls_ecp_curve_list() now lists Curve25519 and Curve448 under the names "x25519" and "x448". These curves support ECDH but not ECDSA. This was meant ever since the introduction of mbedtls_ecdsa_can_do() in0082f9df6f
, but2c69d10bac
had removed the claim that Montgomery curves support ECDH except through Everest. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
326e474a6d
commit
360e2c41d8
5
ChangeLog.d/ecp_curve_list.txt
Normal file
5
ChangeLog.d/ecp_curve_list.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Bugfix
|
||||||
|
* mbedtls_ecp_curve_list() now lists Curve25519 and Curve448 under the names
|
||||||
|
"x25519" and "x448". These curves support ECDH but not ECDSA. If you need
|
||||||
|
only the curves that support ECDSA, filter the list with
|
||||||
|
mbedtls_ecdsa_can_do().
|
|
@ -546,8 +546,11 @@ static const mbedtls_ecp_curve_info ecp_supported_curves[] =
|
||||||
#if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
|
#if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
|
||||||
{ MBEDTLS_ECP_DP_SECP192K1, 18, 192, "secp192k1" },
|
{ MBEDTLS_ECP_DP_SECP192K1, 18, 192, "secp192k1" },
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED) && defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
|
#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
|
||||||
{ MBEDTLS_ECP_DP_CURVE25519, 29, 256, "x25519" },
|
{ MBEDTLS_ECP_DP_CURVE25519, 29, 256, "x25519" },
|
||||||
|
#endif
|
||||||
|
#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
|
||||||
|
{ MBEDTLS_ECP_DP_CURVE448, 30, 448, "x448" },
|
||||||
#endif
|
#endif
|
||||||
{ MBEDTLS_ECP_DP_NONE, 0, 0, NULL },
|
{ MBEDTLS_ECP_DP_NONE, 0, 0, NULL },
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue