curve448: Use relative includes to avoid explicit dependencies
authorAmitay Isaacs <amitay@ozlabs.org>
Mon, 29 Mar 2021 08:08:58 +0000 (19:08 +1100)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Apr 2021 11:18:09 +0000 (12:18 +0100)
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14784)

crypto/ec/build.info
crypto/ec/curve448/arch_32/f_impl.c
crypto/ec/curve448/field.h
crypto/ec/curve448/word.h

index fff3ab1e1cdaea98b7abae473f0bad1f1ab68b02..f6d8283649d75fdd4902e4bf38ac47f00e9b392e 100644 (file)
@@ -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
index 11aa768f2a2eb71df43ee31f37224647d7385508..7263ce233dec16ec1e3e146f0bec235a2c0dd10c 100644 (file)
@@ -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)
 {
index 9d6ee1cacc8d15798462dc6e52149fbbe8e334e1..71349e45a156147e3df839ae54079532b36181b5 100644 (file)
@@ -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)<<LIMB_PLACE_VALUE(i))-1)
index 6e007c37353835b8c4f4937331e5f8c204c2f77c..06555cf32997d39e0b5909c4cf523c03b9b839c0 100644 (file)
@@ -17,7 +17,7 @@
 # include <assert.h>
 # include <stdlib.h>
 # include <openssl/e_os2.h>
-# include "arch_intrinsics.h"
+# include "arch_32/arch_intrinsics.h"
 # include "curve448utils.h"
 
 # if (ARCH_WORD_BITS == 64)