Commit b976500815 for openssl.org
commit b976500815f65e6bfe4bc3db7e6e079db20a0eae
Author: Bob Beck <beck@openssl.org>
Date: Mon Apr 27 13:26:49 2026 -0600
the curve448 f_impl.h files are not self contained headers
They are inline implementations. rename to .inc
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
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 5de942f042..d27904aa97 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 } } };