From: Bob Beck Date: Mon, 27 Apr 2026 19:26:49 +0000 (-0600) Subject: the curve448 f_impl.h files are not self contained headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b976500815f65e6bfe4bc3db7e6e079db20a0eae;p=thirdparty%2Fopenssl.git the curve448 f_impl.h files are not self contained headers They are inline implementations. rename to .inc Reviewed-by: Tomas Mraz Reviewed-by: Nikola Pajkovsky Reviewed-by: Norbert Pocs MergeDate: Wed May 6 11:35:56 2026 (Merged from https://github.com/openssl/openssl/pull/31001) --- diff --git a/crypto/ec/curve448/arch_32/f_impl.h b/crypto/ec/curve448/arch_32/f_impl.inc similarity index 100% rename from crypto/ec/curve448/arch_32/f_impl.h rename to crypto/ec/curve448/arch_32/f_impl.inc diff --git a/crypto/ec/curve448/arch_64/f_impl.h b/crypto/ec/curve448/arch_64/f_impl.inc similarity index 100% rename from crypto/ec/curve448/arch_64/f_impl.h rename to crypto/ec/curve448/arch_64/f_impl.inc diff --git a/crypto/ec/curve448/field.h b/crypto/ec/curve448/field.h index 5de942f0423..d27904aa972 100644 --- a/crypto/ec/curve448/field.h +++ b/crypto/ec/curve448/field.h @@ -66,14 +66,16 @@ void gf_serialize(uint8_t serial[SER_BYTES], 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); +/* clang-format off */ #define LIMBPERM(i) (i) #if (ARCH_WORD_BITS == 32) -#include "arch_32/f_impl.h" /* Bring in the inline implementations */ +#include "arch_32/f_impl.inc" /* Bring in the inline implementations */ #define LIMB_MASK(i) (((1) << LIMB_PLACE_VALUE(i)) - 1) #elif (ARCH_WORD_BITS == 64) -#include "arch_64/f_impl.h" /* Bring in the inline implementations */ +#include "arch_64/f_impl.inc" /* Bring in the inline implementations */ #define LIMB_MASK(i) (((1ULL) << LIMB_PLACE_VALUE(i)) - 1) #endif +/* clang-format on */ static const gf ZERO = { { { 0 } } }, ONE = { { { 1 } } };