mbedtls_x25519_get_params() function
This function sets up an x25519 context from an EC key. It is used by clients and servers in place of the ServerKeyEchange for static ECDH, and imports ECDH parameters from the EC key information of a certificate. \see ecp.h
Arguments
ctx
The x25519 context to set up.
side
Defines the source of the key: 1: Our key, or 0: The key of the peer.
Return value
\c 0 on success. An \c MBEDTLS_ERR_ECP_XXX error code on failure.