From d5cb83ea746fd4756a6b78e60639a5aa3aed922f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Wed, 21 Jan 2015 21:17:46 +0100 Subject: [PATCH] Prepare for additional fat functions. --- ChangeLog | 13 +++++++++++++ configure.ac | 14 +++++++++++--- fat-setup.h | 11 +++++++++++ salsa20-core-internal.c | 7 +++++++ sha3-permute.c | 7 +++++++ sha512-compress.c | 7 +++++++ umac-nh-n.c | 8 ++++++++ umac-nh.c | 7 +++++++ 8 files changed, 71 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67a0baaa..fa25c0ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2015-01-21 Niels Möller + + * salsa20-core-internal.c: Prepare for fat build with C and + assembly implementations. + * sha512-compress.c: Likewise. + * sha3-permute.c: Likewise. + * umac-nh.c: Likewise. + * umac-nh-n.c: Likewise. + + * configure.ac (asm_nettle_optional_list): Added more *-2.asm + files, and corresponding HAVE_NATIVE_* defines. Recognize PROLOGUE + macro in asm files, also when not at the start of the line. + 2015-01-20 Niels Möller * fat-arm.c (get_arm_features): Check NETTLE_FAT_OVERRIDE diff --git a/configure.ac b/configure.ac index 7b2690d9..ad6dfca8 100644 --- a/configure.ac +++ b/configure.ac @@ -306,7 +306,10 @@ asm_replace_list="aes-encrypt-internal.asm aes-decrypt-internal.asm \ # Assembler files which generate additional object files if they are used. asm_nettle_optional_list="gcm-hash8.asm cpuid.asm \ - aes-encrypt-internal-2.asm aes-decrypt-internal-2.asm memxor-2.asm" + aes-encrypt-internal-2.asm aes-decrypt-internal-2.asm memxor-2.asm \ + salsa20-core-internal-2.asm sha3-permute-2.asm sha512-compress-2.asm \ + umac-nh-n-2.asm umac-nh-2.asm" + asm_hogweed_optional_list="" if test "x$enable_public_key" = "xyes" ; then asm_hogweed_optional_list="ecc-192-modp.asm ecc-224-modp.asm \ @@ -343,7 +346,7 @@ if test "x$enable_assembler" = xyes ; then AC_DEFINE_UNQUOTED(HAVE_NATIVE_$tmp_func) eval HAVE_NATIVE_$tmp_func=yes done <