Revert positive flow check
Revert changes for checking whether `MBEDTLS_ECP_RESTARTABLE` is defined, since it broke the CI. The context is used whether the restartable feature is defined or not.
This commit is contained in:
parent
b430d9f262
commit
93ace0199b
1 changed files with 3 additions and 3 deletions
|
@ -191,7 +191,7 @@ int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
size_t grp_len, pt_len;
|
size_t grp_len, pt_len;
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if !defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
|
||||||
mbedtls_ecp_restart_ctx *rs_ctx = NULL;
|
mbedtls_ecp_restart_ctx *rs_ctx = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen,
|
||||||
void *p_rng )
|
void *p_rng )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if !defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
|
||||||
mbedtls_ecp_restart_ctx *rs_ctx = NULL;
|
mbedtls_ecp_restart_ctx *rs_ctx = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ int mbedtls_ecdh_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen,
|
||||||
void *p_rng )
|
void *p_rng )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if !defined(MBEDTLS_ECDH_COMPUTE_SHARED_ALT)
|
||||||
mbedtls_ecp_restart_ctx *rs_ctx = NULL;
|
mbedtls_ecp_restart_ctx *rs_ctx = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue