Add ecp_curve_info_from_name()

This commit is contained in:
Manuel Pégourié-Gonnard 2013-11-30 15:10:14 +01:00
parent 49d738b50d
commit 0267e3dc9b
4 changed files with 83 additions and 3 deletions

View file

@ -204,6 +204,15 @@ const ecp_curve_info *ecp_curve_info_from_grp_id( ecp_group_id grp_id );
*/
const ecp_curve_info *ecp_curve_info_from_tls_id( uint16_t tls_id );
/**
* \brief Get curve information from a human-readable name
*
* \param name The name
*
* \return The associated curve information or NULL
*/
const ecp_curve_info *ecp_curve_info_from_name( const char *name );
/**
* \brief Initialize a point (as zero)
*/