From 2c69d10bac678d0d86615de3d01b3d5bbb4b8c45 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Fri, 22 Feb 2019 15:05:02 +0000 Subject: [PATCH] 3rdparty: Adjust use of Everest in ecp_supported_curves --- library/ecp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/ecp.c b/library/ecp.c index 8ee517e38..c281d8419 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -410,11 +410,8 @@ static const mbedtls_ecp_curve_info ecp_supported_curves[] = #if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED) { MBEDTLS_ECP_DP_SECP192K1, 18, 192, "secp192k1" }, #endif -#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED) +#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED) && defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED) { MBEDTLS_ECP_DP_CURVE25519, 29, 256, "x25519" }, -#endif -#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED) - { MBEDTLS_ECP_DP_CURVE448, 30, 448, "x448" }, #endif { MBEDTLS_ECP_DP_NONE, 0, 0, NULL }, };