mbedtls_ecdh_read_params() function
This function parses the ECDHE parameters in a TLS ServerKeyExchange handshake message. \see ecp.h
Arguments
ctx
The ECDHE context to use. This must be initialized.
buf
On input, \c *buf must be the start of the input buffer. On output, \c *buf is updated to point to the end of the data that has been read. On success, this is the first byte past the end of the ServerKeyExchange parameters. On error, this is the point at which an error has been detected, which is usually not useful except to debug failures.
end
The end of the input buffer.
Return value
\c 0 on success. An \c MBEDTLS_ERR_ECP_XXX error code on failure.
Notes
In a TLS handshake, this is the how the client sets up its ECDHE context from the server's public ECDHE key material.