From 995d00859f1953fb51f0e0efe4ac55e1bae0d871 Mon Sep 17 00:00:00 2001 From: alienwalker Date: Wed, 20 Mar 2024 16:14:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:tls=E7=9A=84=E6=A4=AD=E5=9C=86=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E5=BF=85=E9=A1=BB=E4=BD=BF=E8=83=BDsha512?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interface/include/mbedtls_ec7xx_config.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/interface/include/mbedtls_ec7xx_config.h b/interface/include/mbedtls_ec7xx_config.h index e94f24da..fa9112ba 100644 --- a/interface/include/mbedtls_ec7xx_config.h +++ b/interface/include/mbedtls_ec7xx_config.h @@ -3317,7 +3317,7 @@ extern uint32_t luat_get_utc(uint32_t *tamp); * * This module adds support for SHA-384 and SHA-512. */ -// #define MBEDTLS_SHA512_C +#define MBEDTLS_SHA512_C /** * \def MBEDTLS_SSL_CACHE_C @@ -3949,6 +3949,7 @@ extern uint32_t luat_get_utc(uint32_t *tamp); /* \} name SECTION: Customisation configuration options */ +#ifndef LUAT_SSL_USE_ECP #if defined(TYPE_EC716S) || defined(TYPE_EC718S) // 禁用全部椭圆算法, 节省10k @@ -3970,11 +3971,8 @@ extern uint32_t luat_get_utc(uint32_t *tamp); #undef MBEDTLS_ECP_DP_BP512R1_ENABLED #undef MBEDTLS_ECP_DP_CURVE25519_ENABLED #undef MBEDTLS_ECP_DP_CURVE448_ENABLED - +#undef MBEDTLS_SHA512_C #endif - -#ifdef __LUATOS__ -#define MBEDTLS_SHA512_C #endif /* Target and application specific configurations