mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-11 14:38:17 +02:00
Store TLS curve ID instead of information structure
This will reduce the number of grp ID <-> tls ID <-> curve info structs conversions once a single EC can be hardcoded through its TLS ID.
This commit is contained in:
@@ -383,7 +383,7 @@ struct mbedtls_ssl_handshake_params
|
||||
#endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
|
||||
#if defined(MBEDTLS_ECDH_C) || defined(MBEDTLS_ECDSA_C) || \
|
||||
defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
|
||||
mbedtls_ecp_curve_info const *curve_info; /*!< Info for EC for ECDHE. */
|
||||
uint16_t curve_tls_id; /*!< TLS ID of EC for ECDHE. */
|
||||
#endif
|
||||
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
||||
unsigned char *psk; /*!< PSK from the callback */
|
||||
|
||||
Reference in New Issue
Block a user