diff --git a/3rdparty/everest/library/x25519.c b/3rdparty/everest/library/x25519.c index 68b636f487..6763d04aed 100644 --- a/3rdparty/everest/library/x25519.c +++ b/3rdparty/everest/library/x25519.c @@ -129,7 +129,7 @@ int mbedtls_x25519_calc_secret( mbedtls_x25519_context *ctx, size_t *olen, *olen = MBEDTLS_X25519_KEY_SIZE_BYTES; if( blen < *olen ) - return( MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL ); + return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA ); /* scalarmult modifies this input, let's make a copy... */ unsigned char secret[MBEDTLS_X25519_KEY_SIZE_BYTES];