pub unsafe extern "C" fn mbedtls_ecp_gen_key(
    grp_id: mbedtls_ecp_group_id,
    key: *mut mbedtls_ecp_keypair,
    f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>,
    p_rng: *mut c_void
) -> c_int
Expand description

\brief This function generates an ECP key.

\param grp_id The ECP group identifier. \param key The destination key. This must be initialized. \param f_rng The RNG function to use. This must not be \c NULL. \param 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 \c 0 on success. \return An \c MBEDTLS_ERR_ECP_XXX or \c MBEDTLS_MPI_XXX error code on failure.