enable ltm, add key blinding, add remove tfm

This commit is contained in:
Love Hornquist Astrand
2010-08-15 15:06:58 -07:00
parent 44dfbeb596
commit 763a72b73a
143 changed files with 482 additions and 21199 deletions

View File

@@ -2,7 +2,7 @@
include $(top_srcdir)/Makefile.am.common
AM_CPPFLAGS += -I$(srcdir)/tomsfastmath/src/headers -I$(srcdir)/libtommath
AM_CPPFLAGS += -I$(srcdir)/libtommath -DUSE_HCRYPTO_IMATH=1 -DUSE_HCRYPTO_LTM=1
lib_LTLIBRARIES = libhcrypto.la
check_LTLIBRARIES = libhctest.la
@@ -92,12 +92,13 @@ LDADD = $(lib_LTLIBRARIES) $(LIB_roken)
libhcrypto_la_SOURCES = \
$(imathsource) \
$(tfmsource) \
$(ltmsources) \
aes.c \
aes.h \
bn.c \
bn.h \
common.c \
common.h \
camellia.h \
camellia.c \
camellia-ntt.c \
@@ -162,97 +163,6 @@ imathsource = \
imath/iprime.c \
imath/iprime.h
tfmsource = \
tomsfastmath/src/headers/tfm.h \
tomsfastmath/src/addsub/fp_add.c \
tomsfastmath/src/addsub/fp_add_d.c \
tomsfastmath/src/addsub/fp_addmod.c \
tomsfastmath/src/addsub/fp_cmp.c \
tomsfastmath/src/addsub/fp_cmp_d.c \
tomsfastmath/src/addsub/fp_cmp_mag.c \
tomsfastmath/src/addsub/fp_sub.c \
tomsfastmath/src/addsub/fp_sub_d.c \
tomsfastmath/src/addsub/fp_submod.c \
tomsfastmath/src/addsub/s_fp_add.c \
tomsfastmath/src/addsub/s_fp_sub.c \
tomsfastmath/src/bin/fp_init_multi.c \
tomsfastmath/src/bin/fp_radix_size.c \
tomsfastmath/src/bin/fp_read_radix.c \
tomsfastmath/src/bin/fp_read_signed_bin.c \
tomsfastmath/src/bin/fp_read_unsigned_bin.c \
tomsfastmath/src/bin/fp_reverse.c \
tomsfastmath/src/bin/fp_s_rmap.c \
tomsfastmath/src/bin/fp_signed_bin_size.c \
tomsfastmath/src/bin/fp_to_signed_bin.c \
tomsfastmath/src/bin/fp_to_unsigned_bin.c \
tomsfastmath/src/bin/fp_toradix.c \
tomsfastmath/src/bin/fp_unsigned_bin_size.c \
tomsfastmath/src/bit/fp_cnt_lsb.c \
tomsfastmath/src/bit/fp_count_bits.c \
tomsfastmath/src/bit/fp_div_2.c \
tomsfastmath/src/bit/fp_div_2d.c \
tomsfastmath/src/bit/fp_lshd.c \
tomsfastmath/src/bit/fp_mod_2d.c \
tomsfastmath/src/bit/fp_rshd.c \
tomsfastmath/src/divide/fp_div.c \
tomsfastmath/src/divide/fp_div_d.c \
tomsfastmath/src/divide/fp_mod.c \
tomsfastmath/src/divide/fp_mod_d.c \
tomsfastmath/src/exptmod/fp_2expt.c \
tomsfastmath/src/exptmod/fp_exptmod.c \
tomsfastmath/src/misc/fp_ident.c \
tomsfastmath/src/misc/fp_set.c \
tomsfastmath/src/mont/fp_montgomery_calc_normalization.c \
tomsfastmath/src/mont/fp_montgomery_reduce.c \
tomsfastmath/src/mont/fp_montgomery_setup.c \
tomsfastmath/src/mul/fp_mul.c \
tomsfastmath/src/mul/fp_mul_2.c \
tomsfastmath/src/mul/fp_mul_2d.c \
tomsfastmath/src/mul/fp_mul_comba.c \
tomsfastmath/src/mul/fp_mul_comba_12.c \
tomsfastmath/src/mul/fp_mul_comba_17.c \
tomsfastmath/src/mul/fp_mul_comba_20.c \
tomsfastmath/src/mul/fp_mul_comba_24.c \
tomsfastmath/src/mul/fp_mul_comba_28.c \
tomsfastmath/src/mul/fp_mul_comba_3.c \
tomsfastmath/src/mul/fp_mul_comba_32.c \
tomsfastmath/src/mul/fp_mul_comba_4.c \
tomsfastmath/src/mul/fp_mul_comba_48.c \
tomsfastmath/src/mul/fp_mul_comba_6.c \
tomsfastmath/src/mul/fp_mul_comba_64.c \
tomsfastmath/src/mul/fp_mul_comba_7.c \
tomsfastmath/src/mul/fp_mul_comba_8.c \
tomsfastmath/src/mul/fp_mul_comba_9.c \
tomsfastmath/src/mul/fp_mul_comba_small_set.c \
tomsfastmath/src/mul/fp_mul_d.c \
tomsfastmath/src/mul/fp_mulmod.c \
tomsfastmath/src/numtheory/fp_find_prime.c \
tomsfastmath/src/numtheory/fp_gcd.c \
tomsfastmath/src/numtheory/fp_invmod.c \
tomsfastmath/src/numtheory/fp_isprime.c \
tomsfastmath/src/numtheory/fp_lcm.c \
tomsfastmath/src/numtheory/fp_prime_miller_rabin.c \
tomsfastmath/src/numtheory/fp_prime_random_ex.c \
tomsfastmath/src/sqr/fp_sqr.c \
tomsfastmath/src/sqr/fp_sqr_comba.c \
tomsfastmath/src/sqr/fp_sqr_comba_12.c \
tomsfastmath/src/sqr/fp_sqr_comba_17.c \
tomsfastmath/src/sqr/fp_sqr_comba_20.c \
tomsfastmath/src/sqr/fp_sqr_comba_24.c \
tomsfastmath/src/sqr/fp_sqr_comba_28.c \
tomsfastmath/src/sqr/fp_sqr_comba_3.c \
tomsfastmath/src/sqr/fp_sqr_comba_32.c \
tomsfastmath/src/sqr/fp_sqr_comba_4.c \
tomsfastmath/src/sqr/fp_sqr_comba_48.c \
tomsfastmath/src/sqr/fp_sqr_comba_6.c \
tomsfastmath/src/sqr/fp_sqr_comba_64.c \
tomsfastmath/src/sqr/fp_sqr_comba_7.c \
tomsfastmath/src/sqr/fp_sqr_comba_8.c \
tomsfastmath/src/sqr/fp_sqr_comba_9.c \
tomsfastmath/src/sqr/fp_sqr_comba_generic.c \
tomsfastmath/src/sqr/fp_sqr_comba_small_set.c \
tomsfastmath/src/sqr/fp_sqrmod.c
ltmsources = \
libtommath/bncore.c \
libtommath/bn_mp_init.c \