mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 22:45:46 +01:00
ECDH: Fix Everest ECDH side type
This commit is contained in:
parent
24fbceff50
commit
2e724a18a1
2
library/ecdh.c
Normal file → Executable file
2
library/ecdh.c
Normal file → Executable file
@ -506,7 +506,7 @@ int mbedtls_ecdh_get_params( mbedtls_ecdh_context *ctx,
|
|||||||
#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
|
#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
|
||||||
case MBEDTLS_ECDH_VARIANT_EVEREST:
|
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_OURS :
|
||||||
MBEDTLS_EVEREST_ECDH_THEIRS;
|
MBEDTLS_EVEREST_ECDH_THEIRS;
|
||||||
return( mbedtls_everest_get_params( &ctx->ctx.everest_ecdh,
|
return( mbedtls_everest_get_params( &ctx->ctx.everest_ecdh,
|
||||||
|
Loading…
Reference in New Issue
Block a user