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

mbedtls_ecdh_setup() function

This function sets up the ECDH context with the information given. This function should be called after mbedtls_ecdh_init() but before mbedtls_ecdh_make_params(). There is no need to call this function before mbedtls_ecdh_read_params(). This is the first function used by a TLS server for ECDHE ciphersuites.

Syntax

int mbedtls_ecdh_setup( mbedtls_ecdh_context *ctx,     mbedtls_ecp_group_id grp_id );
Implemented in ecdh.c:209

Arguments

grp_id

The group id of the group to set up the context for.

ctx

The ECDH context to set up. This must be initialized.

Return value

\c 0 on success.

References

LocationReferrerText
ecdh.c:209
ecdh.h:239
int mbedtls_ecdh_setup( mbedtls_ecdh_context *ctx,
ecdh.c:404mbedtls_ecdh_read_params()
if( ( ret = mbedtls_ecdh_setup( ctx, grp_id ) ) != 0 )
ecdh.c:459mbedtls_ecdh_get_params()
if( ( ret = mbedtls_ecdh_setup( ctx, key->grp.id ) ) != 0 )
ssl_srv.c:3051ssl_prepare_server_key_exchange()
if( ( ret = mbedtls_ecdh_setup( &ssl->handshake->ecdh_ctx,

Call Tree

Functions calling mbedtls_ecdh_setup()
Functions called by mbedtls_ecdh_setup()
mbedtls_ecdh_setup()
all items filtered out
Data read by mbedtls_ecdh_setup()
mbedtls_ecdh_setup()