ECDH: Fix typo in ecdh.c

This commit is contained in:
Christoph M. Wintersteiger 2018-12-06 17:16:32 +00:00 committed by Janos Follath
parent 65bab9772e
commit 78c9c461cf

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

@ -222,8 +222,8 @@ int mbedtls_ecdh_setup( mbedtls_ecdh_context *ctx, mbedtls_ecp_group_id grp_id )
#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED) #if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
case MBEDTLS_ECP_DP_CURVE25519: case MBEDTLS_ECP_DP_CURVE25519:
return( mbedtls_everest_setup( ctx, grp_id ) ); return( mbedtls_everest_setup( ctx, grp_id ) );
#endif
break; break;
#endif
default: default:
ctx->point_format = MBEDTLS_ECP_PF_UNCOMPRESSED; ctx->point_format = MBEDTLS_ECP_PF_UNCOMPRESSED;
ctx->var = MBEDTLS_ECDH_VARIANT_MBEDTLS_2_0; ctx->var = MBEDTLS_ECDH_VARIANT_MBEDTLS_2_0;