Skip to content

Commit f801f5b

Browse files
committed
MbedTLS: disable SHA512, AES ROM tables, RSA; enable ECDH
1 parent 9c7d266 commit f801f5b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Diff for: mbedtls_config.h

+17-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@
66
#define MBEDTLS_CIPHER_MODE_CTR
77
#endif
88

9-
#if defined (MBEDTLS_SHA1_C)
9+
#if defined(MBEDTLS_SHA1_C)
1010
#undef MBEDTLS_SHA1_C
1111
#endif
12+
13+
#if defined(MBEDTLS_SHA512_C)
14+
#undef MBEDTLS_SHA512_C
15+
#endif
16+
17+
#if defined(MBEDTLS_AES_ROM_TABLES)
18+
#undef MBEDTLS_AES_ROM_TABLES
19+
#endif
20+
21+
#if defined(MBEDTLS_RSA_C)
22+
#undef MBEDTLS_RSA_C
23+
#endif
24+
25+
#if !defined(MBEDTLS_ECDH_C)
26+
#define MBEDTLS_ECDH_C
27+
#endif

0 commit comments

Comments
 (0)