mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 16:25:43 +01:00
ECDH: Add #ifdef to cleanly disable the Everest code
This commit is contained in:
parent
86e36c4c2b
commit
6acfbb52d7
4
3rdparty/everest/library/everest.c
vendored
4
3rdparty/everest/library/everest.c
vendored
@ -39,6 +39,8 @@
|
||||
#define mbedtls_free free
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
|
||||
|
||||
int mbedtls_everest_setup( mbedtls_ecdh_context *ctx, int grp )
|
||||
{
|
||||
if( grp != MBEDTLS_ECP_DP_CURVE25519 )
|
||||
@ -124,3 +126,5 @@ int mbedtls_everest_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen,
|
||||
if( ctx->var != MBEDTLS_ECDH_VARIANT_EVEREST ) return MBEDTLS_ERR_MPI_BAD_INPUT_DATA;
|
||||
return mbedtls_x25519_calc_secret( x25519_ctx, olen, buf, blen, f_rng, p_rng );
|
||||
}
|
||||
|
||||
#endif /* MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED */
|
Loading…
Reference in New Issue
Block a user