mbedtls_ecdh_read_params() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_ecdh_read_params() function

This function parses the ECDHE parameters in a TLS ServerKeyExchange handshake message. \see ecp.h

Syntax

int mbedtls_ecdh_read_params( mbedtls_ecdh_context *ctx,     const unsigned char **buf,     const unsigned char *end );
Implemented in ecdh.c:389

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.

References

LocationReferrerText
ecdh.c:389
int mbedtls_ecdh_read_params( mbedtls_ecdh_context *ctx,
ecdh.h:305
int mbedtls_ecdh_read_params( mbedtls_ecdh_context *ctx,
ssl_cli.c:2082ssl_parse_server_ecdh_params()
if( ( ret = mbedtls_ecdh_read_params( &ssl->handshake->ecdh_ctx,

Call Tree

Functions calling mbedtls_ecdh_read_params()
Functions called by mbedtls_ecdh_read_params()
all items filtered out
mbedtls_ecdh_read_params()
Data read by mbedtls_ecdh_read_params()
Data written by mbedtls_ecdh_read_params()
mbedtls_ecdh_read_params()::ret
mbedtls_ecdh_read_params()::grp_id
all items filtered out
mbedtls_ecdh_read_params()
mbedtls_ecdh_read_params()::ret
all items filtered out
Type of mbedtls_ecdh_read_params()
mbedtls_ecdh_read_params()
all items filtered out