Fix ECP alternative macro names
The compile time macros enabling the initialisation and deinitialisation
in the alternative Elliptic Curve Point arithmetic implementation had
names that did not end with '_ALT' as required by check-names.sh.
diff --git a/library/ecp.c b/library/ecp.c
index 6101983..7f48e38 100644
--- a/library/ecp.c
+++ b/library/ecp.c
@@ -1685,7 +1685,7 @@
( ret = mbedtls_ecp_check_pubkey( grp, P ) ) != 0 )
return( ret );
-#if defined(MBEDTLS_ECP_ALT_INIT)
+#if defined(MBEDTLS_ECP_INIT_ALT)
if ( ecp_alt_grp_capable( grp ) )
{
MBEDTLS_MPI_CHK( ecp_alt_init( grp ) );
@@ -1702,11 +1702,11 @@
ret = ecp_mul_comb( grp, R, m, P, f_rng, p_rng );
#endif
-#if defined(MBEDTLS_ECP_ALT_INIT)
+#if defined(MBEDTLS_ECP_INIT_ALT)
cleanup:
#endif
-#if defined(MBEDTLS_ECP_ALT_DEINIT)
+#if defined(MBEDTLS_ECP_DEINIT_ALT)
if ( ecp_alt_grp_capable( grp ) )
{
ecp_alt_deinit( grp );
@@ -1815,7 +1815,7 @@
MBEDTLS_MPI_CHK( mbedtls_ecp_mul_shortcuts( grp, &mP, m, P ) );
MBEDTLS_MPI_CHK( mbedtls_ecp_mul_shortcuts( grp, R, n, Q ) );
-#if defined(MBEDTLS_ECP_ALT_INIT)
+#if defined(MBEDTLS_ECP_INIT_ALT)
if ( ecp_alt_grp_capable( grp ) )
{
MBEDTLS_MPI_CHK( ecp_alt_init( grp ) );
@@ -1826,7 +1826,7 @@
cleanup:
-#if defined(MBEDTLS_ECP_ALT_DEINIT)
+#if defined(MBEDTLS_ECP_DEINIT_ALT)
if ( ecp_alt_grp_capable( grp ) )
{
ecp_alt_deinit( grp );