From 12e4718c67aeff0c84fb160edb20d1b758ded9ec Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Wed, 22 Apr 2020 11:06:36 -0600 Subject: [PATCH] Fix for Freescale common examples that predated hardening warning --- wolfssl/wolfcrypt/settings.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index e0620a9f9..c439bc33a 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -933,6 +933,15 @@ extern void uITRON4_free(void *p) ; #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));} /* Note: MQX has no realloc, using fastmath above */ #endif + #ifdef USE_FAST_MATH + /* Undef first to avoid re-definition if user_settings.h defines */ + #undef TFM_TIMING_RESISTANT + #define TFM_TIMING_RESISTANT + #undef ECC_TIMING_RESISTANT + #define ECC_TIMING_RESISTANT + #undef WC_RSA_BLINDING + #define WC_RSA_BLINDING + #endif #endif #ifdef FREESCALE_KSDK_MQX