mbedtls: Add missing sha_caps includes

This commit is contained in:
Angus Gratton
2020-11-06 14:49:57 +11:00
committed by bot
parent 6a19590132
commit a4fb6c0173
3 changed files with 11 additions and 3 deletions

View File

@@ -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