1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Add ecp_curve_list(), hide ecp_supported_curves

This commit is contained in:
Manuel Pégourié-Gonnard
2013-09-18 15:31:24 +02:00
committed by Paul Bakker
parent dace82f805
commit da179e4870
5 changed files with 22 additions and 12 deletions

View File

@@ -64,7 +64,7 @@ typedef enum
} ecp_group_id;
/**
* Curve information for use by the SSL module
* Curve information for use by other modules
*/
typedef struct
{
@@ -74,11 +74,6 @@ typedef struct
const char *name; /*!< Human-friendly name */
} ecp_curve_info;
/**
* List of supported curves
*/
extern const ecp_curve_info ecp_supported_curves[];
/**
* \brief ECP point structure (jacobian coordinates)
*
@@ -180,6 +175,13 @@ ecp_keypair;
extern "C" {
#endif
/**
* \brief Return the list of supported curves with associated info
*
* \return A statically allocated array, the last entry is 0.
*/
const ecp_curve_info *ecp_curve_list( void );
/**
* \brief Initialize a point (as zero)
*/