mbedtls_ecp_grp_id_list() function
This function retrieves the list of internal group identifiers of all supported curves in the order of preference.
Return value
A statically allocated array, terminated with MBEDTLS_ECP_DP_NONE.
Notes
This function returns information about all curves supported by the library. Some curves may not be supported for all algorithms. Call mbedtls_ecdh_can_do() or mbedtls_ecdsa_can_do() to check if a curve is supported for ECDH or ECDSA.