Skip to content

Commit 68f166d

Browse files
committed
extmod/mbedtls: Remove brainpool curves from config.
They are much slower than NIST (SECP) curves and shouldn't be needed. Reduces rp2 PICO_W firmware by 1328 bytes. Thanks to @Carglglz for the information. Signed-off-by: Damien George <[email protected]>
1 parent e24159d commit 68f166d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

extmod/mbedtls/mbedtls_config_common.h

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
4343
#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
4444
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
45-
#define MBEDTLS_ECP_DP_BP256R1_ENABLED
46-
#define MBEDTLS_ECP_DP_BP384R1_ENABLED
47-
#define MBEDTLS_ECP_DP_BP512R1_ENABLED
4845
#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
4946
// #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED // enabling this currently breaks ssl_data.py test
5047
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED

0 commit comments

Comments
 (0)