From a38fad9dad256be6e7f1595b4112e4a945448bb3 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Mon, 4 Mar 2024 18:27:32 +0000 Subject: [PATCH] Adjust defaults Signed-off-by: Dave Rodgman --- library/sha3.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/library/sha3.c b/library/sha3.c index 2bc3b4cdf1..81ea6a8a4d 100644 --- a/library/sha3.c +++ b/library/sha3.c @@ -25,26 +25,18 @@ * x86-64. */ #if !defined(MBEDTLS_SHA3_THETA_UNROLL) - #if defined(__OPTIMIZE_SIZE__) - #define MBEDTLS_SHA3_THETA_UNROLL 0 //no-check-names - #else - #define MBEDTLS_SHA3_THETA_UNROLL 1 //no-check-names - #endif -#endif -#if !defined(MBEDTLS_SHA3_PI_UNROLL) - #if defined(__OPTIMIZE_SIZE__) - #define MBEDTLS_SHA3_PI_UNROLL 0 //no-check-names - #else - #define MBEDTLS_SHA3_PI_UNROLL 1 //no-check-names - #endif + #define MBEDTLS_SHA3_THETA_UNROLL 0 //no-check-names #endif #if !defined(MBEDTLS_SHA3_CHI_UNROLL) #if defined(__OPTIMIZE_SIZE__) - #define MBEDTLS_SHA3_CHI_UNROLL 1 //no-check-names - #else #define MBEDTLS_SHA3_CHI_UNROLL 0 //no-check-names + #else + #define MBEDTLS_SHA3_CHI_UNROLL 1 //no-check-names #endif #endif +#if !defined(MBEDTLS_SHA3_PI_UNROLL) + #define MBEDTLS_SHA3_PI_UNROLL 1 //no-check-names +#endif #if !defined(MBEDTLS_SHA3_RHO_UNROLL) #define MBEDTLS_SHA3_RHO_UNROLL 1 //no-check-names #endif