mbedtls_x25519_make_params() function
This function generates a public key and a TLS ServerKeyExchange payload. This is the first function used by a TLS server for x25519.
Arguments
olen
The number of characters written.
buf
The destination buffer.
blen
The length of the destination buffer.
Return value
\c 0 on success. An \c MBEDTLS_ERR_ECP_XXX error code on failure.