Added an option to build internal LibTomMath with faster div routine

At the cost of about 1 kB of additional binary size, the internal
LibTomMath can be configured to include faster div routine to speed up DH
and RSA. This can be enabled with CONFIG_INTERNAL_LIBTOMMATH_FAST_DIV=y in
.config.
This commit is contained in:
Jouni Malinen 2008-06-06 10:11:17 +03:00
parent b6ab429402
commit ec0205a87a
3 changed files with 294 additions and 0 deletions

View file

@ -627,6 +627,9 @@ endif
ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST_SQR
CFLAGS += -DLTM_FAST_SQR
endif
ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST_DIV
CFLAGS += -DLTM_FAST_DIV
endif
else
LIBS += -ltommath
LIBS_p += -ltommath

View file

@ -314,6 +314,10 @@ CONFIG_PEERKEY=y
# LibTomMath can be configured to include faster sqr routine to speed up DH and
# RSA.
#CONFIG_INTERNAL_LIBTOMMATH_FAST_SQR=y
# At the cost of about 1 kB of additional binary size, the internal
# LibTomMath can be configured to include faster div routine to speed up DH and
# RSA.
#CONFIG_INTERNAL_LIBTOMMATH_FAST_DIV=y
# Include NDIS event processing through WMI into wpa_supplicant/wpasvc.
# This is only for Windows builds and requires WMI-related header files and