File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -281,7 +281,9 @@ int mbedtls_ecp_check_budget(const mbedtls_ecp_group *grp,
281281
282282#endif /* MBEDTLS_ECP_RESTARTABLE */
283283
284- #if defined(MBEDTLS_ECP_C )
284+ #if defined(MBEDTLS_ECP_C ) && \
285+ (defined(MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED ) || \
286+ defined(MBEDTLS_ECP_MONTGOMERY_ENABLED ))
285287static void mpi_init_many (mbedtls_mpi * arr , size_t size )
286288{
287289 while (size -- ) {
@@ -295,7 +297,7 @@ static void mpi_free_many(mbedtls_mpi *arr, size_t size)
295297 mbedtls_mpi_free (arr ++ );
296298 }
297299}
298- #endif /* MBEDTLS_ECP_C */
300+ #endif
299301
300302/*
301303 * List of supported curves:
@@ -708,6 +710,7 @@ int mbedtls_ecp_point_write_binary(const mbedtls_ecp_group *grp,
708710 }
709711#endif
710712
713+ (void )& & cleanup ;
711714cleanup :
712715 return ret ;
713716}
@@ -787,6 +790,7 @@ int mbedtls_ecp_point_read_binary(const mbedtls_ecp_group *grp,
787790 }
788791#endif
789792
793+ (void )& & cleanup ;
790794cleanup :
791795 return ret ;
792796}
You can’t perform that action at this time.
0 commit comments