From: Amitay Isaacs Date: Mon, 29 Mar 2021 08:08:58 +0000 (+1100) Subject: curve448: Use relative includes to avoid explicit dependencies X-Git-Tag: openssl-3.0.0-alpha14~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4286c78a657958bcd5cee38a8d131b4bb2582a;p=thirdparty%2Fopenssl.git curve448: Use relative includes to avoid explicit dependencies Signed-off-by: Amitay Isaacs Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/14784) --- diff --git a/crypto/ec/build.info b/crypto/ec/build.info index fff3ab1e1cd..f6d8283649d 100644 --- a/crypto/ec/build.info +++ b/crypto/ec/build.info @@ -87,10 +87,3 @@ GENERATE[ecp_nistz256-ppc64.s]=asm/ecp_nistz256-ppc64.pl GENERATE[x25519-x86_64.s]=asm/x25519-x86_64.pl GENERATE[x25519-ppc64.s]=asm/x25519-ppc64.pl - -INCLUDE[curve448/arch_32/f_impl.o]=curve448/arch_32 curve448 -INCLUDE[curve448/f_generic.o]=curve448/arch_32 curve448 -INCLUDE[curve448/scalar.o]=curve448/arch_32 curve448 -INCLUDE[curve448/curve448_tables.o]=curve448/arch_32 curve448 -INCLUDE[curve448/eddsa.o]=curve448/arch_32 curve448 -INCLUDE[curve448/curve448.o]=curve448/arch_32 curve448 diff --git a/crypto/ec/curve448/arch_32/f_impl.c b/crypto/ec/curve448/arch_32/f_impl.c index 11aa768f2a2..7263ce233de 100644 --- a/crypto/ec/curve448/arch_32/f_impl.c +++ b/crypto/ec/curve448/arch_32/f_impl.c @@ -10,7 +10,7 @@ * Originally written by Mike Hamburg */ -#include "field.h" +#include "../field.h" void gf_mul(gf_s * RESTRICT cs, const gf as, const gf bs) { diff --git a/crypto/ec/curve448/field.h b/crypto/ec/curve448/field.h index 9d6ee1cacc8..71349e45a15 100644 --- a/crypto/ec/curve448/field.h +++ b/crypto/ec/curve448/field.h @@ -66,7 +66,7 @@ void gf_serialize(uint8_t *serial, const gf x, int with_highbit); mask_t gf_deserialize(gf x, const uint8_t serial[SER_BYTES], int with_hibit, uint8_t hi_nmask); -# include "f_impl.h" /* Bring in the inline implementations */ +# include "arch_32/f_impl.h" /* Bring in the inline implementations */ # define LIMBPERM(i) (i) # define LIMB_MASK(i) (((1)< # include # include -# include "arch_intrinsics.h" +# include "arch_32/arch_intrinsics.h" # include "curve448utils.h" # if (ARCH_WORD_BITS == 64)