mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-07 15:09:28 +01:00
Add identifiers for Brainpool curves
This commit is contained in:
parent
9eb883104e
commit
8195c1a567
3 changed files with 24 additions and 9 deletions
|
|
@ -241,6 +241,9 @@
|
|||
#define POLARSSL_ECP_DP_SECP256R1_ENABLED
|
||||
#define POLARSSL_ECP_DP_SECP384R1_ENABLED
|
||||
#define POLARSSL_ECP_DP_SECP521R1_ENABLED
|
||||
#define POLARSSL_ECP_DP_BP256R1_ENABLED
|
||||
#define POLARSSL_ECP_DP_BP384R1_ENABLED
|
||||
#define POLARSSL_ECP_DP_BP512R1_ENABLED
|
||||
|
||||
/**
|
||||
* \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED
|
||||
|
|
|
|||
|
|
@ -61,12 +61,15 @@ typedef enum
|
|||
POLARSSL_ECP_DP_SECP256R1, /*!< 256-bits NIST curve */
|
||||
POLARSSL_ECP_DP_SECP384R1, /*!< 384-bits NIST curve */
|
||||
POLARSSL_ECP_DP_SECP521R1, /*!< 521-bits NIST curve */
|
||||
POLARSSL_ECP_DP_BP256R1, /*!< 256-bits Brainpool curve */
|
||||
POLARSSL_ECP_DP_BP384R1, /*!< 384-bits Brainpool curve */
|
||||
POLARSSL_ECP_DP_BP512R1, /*!< 512-bits Brainpool curve */
|
||||
} ecp_group_id;
|
||||
|
||||
/**
|
||||
* Number of supported curves (plus one for NONE)
|
||||
*/
|
||||
#define POLARSSL_ECP_DP_MAX 6
|
||||
#define POLARSSL_ECP_DP_MAX 9
|
||||
|
||||
/**
|
||||
* Curve information for use by other modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue