Merge branch 'bugfix/small_cleanups' into 'master'

Small cleanups

See merge request espressif/esp-idf!11141
This commit is contained in:
Angus Gratton
2020-11-23 17:23:53 +08:00
6 changed files with 13 additions and 6 deletions
@@ -29,6 +29,7 @@
#include "sdkconfig.h"
#include "mbedtls/config.h"
#include "soc/soc_caps.h"
/**
* \name SECTION: System support
@@ -130,7 +131,13 @@
#ifdef CONFIG_MBEDTLS_HARDWARE_SHA
#define MBEDTLS_SHA1_ALT
#define MBEDTLS_SHA256_ALT
#if SOC_SHA_SUPPORT_SHA512
#define MBEDTLS_SHA512_ALT
#else
#undef MBEDTLS_SHA512_ALT
#endif
#else
#undef MBEDTLS_SHA1_ALT
#undef MBEDTLS_SHA256_ALT