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:
committed by
Paul Bakker
parent
dace82f805
commit
da179e4870
@@ -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)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user