mbedtls hardware RSA: Put into menuconfig, squash warnings

All combinations of enabling/disabling hardware acceleration no longer
show unused warnings.
This commit is contained in:
Angus Gratton
2016-11-18 14:26:02 +11:00
parent f87be70d51
commit 68d370542a
4 changed files with 36 additions and 5 deletions

View File

@@ -239,7 +239,9 @@
/* The following units have ESP32 hardware support,
uncommenting each _ALT macro will use the
hardware-accelerated implementation. */
#ifdef CONFIG_MBEDTLS_HARDWARE_AES
#define MBEDTLS_AES_ALT
#endif
/* Currently hardware SHA does not work with TLS handshake,
due to concurrency issue. Internal TW#7111. */
@@ -251,8 +253,10 @@
Uncommenting these macros will use the hardware-accelerated
implementations.
*/
#ifdef CONFIG_MBEDTLS_HARDWARE_MPI
#define MBEDTLS_MPI_EXP_MOD_ALT
#define MBEDTLS_MPI_MUL_MPI_ALT
#endif
/**
* \def MBEDTLS_MD2_PROCESS_ALT