mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 21:54:41 +02:00
add --enable-harden swtich for timing resistance and blinding, on by default
This commit is contained in:
12
configure.ac
12
configure.ac
@@ -192,6 +192,18 @@ AC_ARG_ENABLE([maxstrength],
|
|||||||
[ENABLED_MAXSTRENGTH=no])
|
[ENABLED_MAXSTRENGTH=no])
|
||||||
|
|
||||||
|
|
||||||
|
# Harden, enable Timing Resistance and Blinding by default
|
||||||
|
AC_ARG_ENABLE([harden],
|
||||||
|
[AS_HELP_STRING([--enable-harden],[Enable Hardened build, Enables Timing Resistance and Blinding (default: enabled)])],
|
||||||
|
[ENABLED_HARDEN=$enableval],
|
||||||
|
[ENABLED_HARDEN=yes])
|
||||||
|
|
||||||
|
if test "$ENABLED_HARDEN" = "yes"
|
||||||
|
then
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DTFM_TIMING_RESISTANT -DECC_TIMING_RESISTANT -DWC_RSA_BLINDING"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# IPv6 Test Apps
|
# IPv6 Test Apps
|
||||||
AC_ARG_ENABLE([ipv6],
|
AC_ARG_ENABLE([ipv6],
|
||||||
[ --enable-ipv6 Enable testing of IPV6 (default: disabled)],
|
[ --enable-ipv6 Enable testing of IPV6 (default: disabled)],
|
||||||
|
Reference in New Issue
Block a user