From 5f152f558e7bc8fc8d93ae250bdc61cd60ab5acd Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 11 Jun 2015 10:53:26 -0400 Subject: First cut at RSA decryption/signature using the Chinese Remainder Theorem. Not yet tested, and given the number of moving parts I would be astonished if this version actually worked, but it does compile. Added some timing code to tests/test-rsa.c so we can see whether this is doing anything useful once it does work. --- configure.ac | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d62d460..aecdcc0 100644 --- a/configure.ac +++ b/configure.ac @@ -39,22 +39,25 @@ AC_INIT([libcryptech], [0.1]) -AC_ARG_VAR([FPGA_BUS], [Bus architecture to use (currently must be "EIM" or "I2C")]) -AC_ARG_VAR([CC], [C compiler command]) -AC_ARG_VAR([CFLAGS], [C compiler flags]) -AC_ARG_VAR([LDFLAGS], [Linker flags]) +AC_ARG_VAR([FPGA_BUS], [Bus architecture to use (currently must be "EIM" or "I2C")]) +AC_ARG_VAR([CC], [C compiler command]) +AC_ARG_VAR([CFLAGS], [C compiler flags]) +AC_ARG_VAR([LDFLAGS], [Linker flags]) +AC_ARG_VAR([TFMDIR], [Directory containing libtfm.a and tfm.h]) AS_CASE($FPGA_BUS, [""],[FPGA_BUS=EIM], [EIM|I2C],[], - [AC_MSG_ERROR([Invalid setting of FPGA_BUS, must be "EIM" or "I2C"])]) - -AS_CASE($CC, [""],[CC="cc"], []) -AS_CASE($CFLAGS, [""],[CFLAGS="-g -Wall -fPIC"], []) -AS_CASE($LDFLAGS, [""],[LDFLAGS="-g"], []) + [AC_MSG_ERROR([Invalid setting of FPGA_BUS, must be "EIM" or "I2C"])]) + +AS_CASE($CC, [""],[CC='cc'], []) +AS_CASE($CFLAGS, [""],[CFLAGS='-g3 -Wall -fPIC -std=c99 -I${TFMDIR}'], []) +AS_CASE($LDFLAGS, [""],[LDFLAGS='-g3 -L${TFMDIR} -ltfm'], []) +AS_CASE($TFMDIR, [""],[TFMDIR='${abs_top_builddir}/../libtfm'], []) AC_MSG_NOTICE([FPGA bus: $FPGA_BUS]) AC_MSG_NOTICE([C compiler: $CC]) AC_MSG_NOTICE([C compiler flags: $CFLAGS]) AC_MSG_NOTICE([Linker flags: $LDFLAGS]) +AC_MSG_NOTICE([libtfm directory: $TFMDIR]) AC_CONFIG_FILES([Makefile tests/Makefile]) AC_OUTPUT -- cgit v1.2.3