ECDH: Fix Everest ECDH side type

This commit is contained in:
Christoph M. Wintersteiger 2019-01-07 14:19:41 +00:00 committed by Janos Follath
parent 24fbceff50
commit 2e724a18a1

2
library/ecdh.c Normal file → Executable file
View File

@ -506,7 +506,7 @@ int mbedtls_ecdh_get_params( mbedtls_ecdh_context *ctx,
#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
case MBEDTLS_ECDH_VARIANT_EVEREST:
{
mbedtls_x25519_ecdh_side s = side == MBEDTLS_ECDH_OURS ?
mbedtls_everest_ecdh_side s = side == MBEDTLS_ECDH_OURS ?
MBEDTLS_EVEREST_ECDH_OURS :
MBEDTLS_EVEREST_ECDH_THEIRS;
return( mbedtls_everest_get_params( &ctx->ctx.everest_ecdh,