Skip to content

Commit

Permalink
remove duplicated consecutive preproc directives
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
  • Loading branch information
gstrauss committed Dec 20, 2022
1 parent 8b6d14b commit efde9d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/ecp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ static inline int mbedtls_mpi_shift_l_mod( const mbedtls_ecp_group *grp,
MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_swap( (X), (Y), (cond) ) )

#if defined(MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED)

/*
* Computes the right-hand side of the Short Weierstrass equation
* RHS = X^3 + A X + B
Expand Down Expand Up @@ -1302,9 +1303,7 @@ static int mbedtls_ecp_sw_derive_y( const mbedtls_ecp_group *grp,
mbedtls_mpi_free( &exp );
return( ret );
}
#endif /* MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED */

#if defined(MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED)
/*
* For curves in short Weierstrass form, we do all the internal operations in
* Jacobian coordinates.
Expand Down

0 comments on commit efde9d5

Please sign in to comment.