From 0c0476f92d8afcb83c7116a13b324bac4181eb9d Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 19 Dec 2013 16:20:53 +0100 Subject: [PATCH] Disable ecp_use_curve25519() if not POLARSSL_ECP_DP_M255_ENABLED --- library/ecp_curves.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ecp_curves.c b/library/ecp_curves.c index d3b518ab3..706e0ee4d 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -573,6 +573,7 @@ static int ecp_mod_p255( mpi * ); G ## _gy, sizeof( G ## _gy ), \ G ## _n, sizeof( G ## _n ) ) +#if defined(POLARSSL_ECP_DP_M255_ENABLED) /* * Specialized function for creating the Curve25519 group */ @@ -604,6 +605,7 @@ cleanup: return( ret ); } +#endif /* POLARSSL_ECP_DP_M255_ENABLED */ /* * Set a group using well-known domain parameters