mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 08:56:50 -04:00
Remove MBEDTLS_ECDSA_GENKEY_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
4864424fea
commit
28647d8669
@ -184,10 +184,6 @@
|
|||||||
#error "MBEDTLS_ECJPAKE_C defined, but not all prerequisites"
|
#error "MBEDTLS_ECJPAKE_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE) && defined(MBEDTLS_ECDSA_GENKEY_ALT)
|
|
||||||
#error "MBEDTLS_ECP_RESTARTABLE defined, but it cannot coexist with an alternative ECP implementation"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE) && \
|
#if defined(MBEDTLS_ECP_RESTARTABLE) && \
|
||||||
!defined(MBEDTLS_ECP_C)
|
!defined(MBEDTLS_ECP_C)
|
||||||
#error "MBEDTLS_ECP_RESTARTABLE defined, but not all prerequisites"
|
#error "MBEDTLS_ECP_RESTARTABLE defined, but not all prerequisites"
|
||||||
|
@ -350,8 +350,6 @@
|
|||||||
*/
|
*/
|
||||||
//#define MBEDTLS_TIMING_ALT
|
//#define MBEDTLS_TIMING_ALT
|
||||||
|
|
||||||
//#define MBEDTLS_ECDSA_GENKEY_ALT
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_ENTROPY_HARDWARE_ALT
|
* \def MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||||
*
|
*
|
||||||
|
@ -739,7 +739,6 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(MBEDTLS_ECDSA_GENKEY_ALT)
|
|
||||||
/*
|
/*
|
||||||
* Generate key pair
|
* Generate key pair
|
||||||
*/
|
*/
|
||||||
@ -755,7 +754,6 @@ int mbedtls_ecdsa_genkey(mbedtls_ecdsa_context *ctx, mbedtls_ecp_group_id gid,
|
|||||||
return mbedtls_ecp_gen_keypair(&ctx->grp, &ctx->d,
|
return mbedtls_ecp_gen_keypair(&ctx->grp, &ctx->d,
|
||||||
&ctx->Q, f_rng, p_rng);
|
&ctx->Q, f_rng, p_rng);
|
||||||
}
|
}
|
||||||
#endif /* !MBEDTLS_ECDSA_GENKEY_ALT */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set context from an mbedtls_ecp_keypair
|
* Set context from an mbedtls_ecp_keypair
|
||||||
|
Loading…
x
Reference in New Issue
Block a user