mbedtls_ecp_gen_key() function
This function generates an ECP key.
Arguments
grp_id
The ECP group identifier.
key
The destination key. This must be initialized.
f_rng
The RNG function to use. This must not be \c NULL.
p_rng
The RNG context to be passed to \p f_rng. This may be \c NULL if \p f_rng doesn't need a context argument.
Return value
\c 0 on success. An \c MBEDTLS_ERR_ECP_XXX or \c MBEDTLS_MPI_XXX error code on failure.