]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
the curve448 f_impl.h files are not self contained headers
authorBob Beck <beck@openssl.org>
Mon, 27 Apr 2026 19:26:49 +0000 (13:26 -0600)
committerNorbert Pocs <norbertp@openssl.org>
Wed, 6 May 2026 11:35:24 +0000 (13:35 +0200)
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)

crypto/ec/curve448/arch_32/f_impl.inc [moved from crypto/ec/curve448/arch_32/f_impl.h with 100% similarity]
crypto/ec/curve448/arch_64/f_impl.inc [moved from crypto/ec/curve448/arch_64/f_impl.h with 100% similarity]
crypto/ec/curve448/field.h

index 5de942f0423cdf12953b6b0a24a93cb01b026c94..d27904aa97260c8a7408674ce0ae58b936a10398 100644 (file)
@@ -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 } } };