]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
md32_common.h is not a self contained header file
authorBob Beck <beck@openssl.org>
Wed, 3 Sep 2025 00:52:16 +0000 (18:52 -0600)
committerNorbert Pocs <norbertp@openssl.org>
Wed, 6 May 2026 11:35:24 +0000 (13:35 +0200)
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:44 2026
(Merged from https://github.com/openssl/openssl/pull/31001)

12 files changed:
crypto/md4/md4_local.h
crypto/md5/md5_local.h
crypto/ripemd/rmd_local.h
crypto/sha/sha1dgst.c
crypto/sha/sha256.c
crypto/sha/sha512.c
crypto/sha/sha_local.h
crypto/sm3/sm3_local.h
include/crypto/md32_common.inc [moved from include/crypto/md32_common.h with 100% similarity]
providers/fips-sources.checksums
providers/fips.module.sources
util/fix-includes.sed

index ec2a8c361cf082d18ca221793c5e1697980f6fc5..d52914d0c8c778b62db9b417fadd56250ca89ed7 100644 (file)
@@ -36,7 +36,9 @@ void md4_block_data_order(MD4_CTX *c, const void *p, size_t num);
     } while (0)
 #define HASH_BLOCK_DATA_ORDER md4_block_data_order
 
-#include "crypto/md32_common.h"
+/* clang-format off */
+#include "crypto/md32_common.inc"
+/* clang-format on */
 
 /*-
 #define F(x,y,z)        (((x) & (y))  |  ((~(x)) & (z)))
index 7af525445708c71b12d69866766bf77c476e0c5a..090651616eca18f0489fd1baae975a741db1763d 100644 (file)
@@ -46,7 +46,9 @@ void md5_block_data_order(MD5_CTX *c, const void *p, size_t num);
     } while (0)
 #define HASH_BLOCK_DATA_ORDER md5_block_data_order
 
-#include "crypto/md32_common.h"
+/* clang-format off */
+#include "crypto/md32_common.inc"
+/* clang-format on */
 
 /*-
 #define F(x,y,z)        (((x) & (y))  |  ((~(x)) & (z)))
index f2934a7332f1373da56e7254612c72dfaa86dad8..2e47ede12a38ec9a355c8bbdaada60e8f0a27c20 100644 (file)
@@ -48,7 +48,9 @@ void ripemd160_block_data_order(RIPEMD160_CTX *c, const void *p, size_t num);
     } while (0)
 #define HASH_BLOCK_DATA_ORDER ripemd160_block_data_order
 
-#include "crypto/md32_common.h"
+/* clang-format off */
+#include "crypto/md32_common.inc"
+/* clang-format on */
 
 /*
  * Transformed F2 and F4 are courtesy of Wei Dai
index e8f1ef5244d1bb3e63c43dfefa4fa1e45610d798..3fe0aebfffa16b6454afe0c99f817b2f75398305 100644 (file)
@@ -20,7 +20,7 @@
 #include <openssl/evp.h>
 #include <openssl/sha.h>
 
-/* The implementation is in crypto/md32_common.h */
+/* The implementation is in crypto/md32_common.inc */
 
 #include "sha_local.h"
 #include "crypto/sha.h"
index d624d39d219a799c1fe8e1c40fecc6995d827eb4..eab94876225415bec217949b15b8f7bf4839f084 100644 (file)
@@ -133,7 +133,9 @@ void sha256_block_data_order_c(SHA256_CTX *ctx, const void *in, size_t num);
 #endif /* SHA256_ASM */
     void sha256_block_data_order(SHA256_CTX *ctx, const void *in, size_t num);
 
-#include "crypto/md32_common.h"
+/* clang-format off */
+#include "crypto/md32_common.inc"
+/* clang-format on */
 #undef HASH_UPDATE_THUNK
 
 int SHA256_Update(SHA256_CTX *ctx, const void *data, size_t sz)
index 7e04607282ea4147971364f81f33329969a49a43..6ccc0070e039eeb3158897b74a372c7765aa8225 100644 (file)
@@ -26,7 +26,7 @@
  *   on [aligned] data in host byte order, and one operating on data in input
  *   stream byte order;
  * - share common byte-order neutral collector and padding function
- *   implementations, crypto/md32_common.h;
+ *   implementations, crypto/md32_common.inc;
  *
  * Neither of the above applies to this SHA-512 implementation. Reasons
  * [in reverse order] are:
index d74d49a4b7b9f798e000f16ed8660df5518ec64b..61693e943449710c9ca4437cfdd8e1795c8a7738 100644 (file)
@@ -49,7 +49,9 @@ static void sha1_block_data_order(SHA_CTX *c, const void *p, size_t num);
 void sha1_block_data_order(SHA_CTX *c, const void *p, size_t num);
 #endif
 
-#include "crypto/md32_common.h"
+/* clang-format off */
+#include "crypto/md32_common.inc"
+/* clang-format on */
 #undef HASH_UPDATE_THUNK
 
 int SHA1_Update(SHA_CTX *c, const void *data, size_t len)
index d6c9a9671051749e0bc7fb2230d8e5f31a087756..722dc9acecd534205ff518bd3226f912a044ab00 100644 (file)
@@ -69,7 +69,9 @@ void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
 void ossl_sm3_block_data_order(SM3_CTX *c, const void *p, size_t num);
 void ossl_sm3_transform(SM3_CTX *c, const unsigned char *data);
 
-#include "crypto/md32_common.h"
+/* clang-format off */
+#include "crypto/md32_common.inc"
+/* clang-format on */
 
 #ifndef PEDANTIC
 #if defined(__GNUC__) && __GNUC__ >= 2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
index 3cc2561067ff9bc6a01f879f5e414b6ee6aa9f2d..527e124d765f70caff4c6960e20a5e0430913916 100644 (file)
@@ -453,7 +453,7 @@ fb109231b7f7fc2e83dd39ec6ef14d88f6ee60cc91ef1efd0c49fa7eeaa50ace  include/crypto
 8eef8896afdccc8c90c548e0d11b290c004df3231a1777e8205b88c04645c4b5  include/crypto/ecx.h
 4af06cb0219605fdbb606b0b6de51e34aa0503b42457a424f80c7c0c39dcc985  include/crypto/evp.h
 fc22d8a6d80875c8c45c51a449069b936eadb9621aa9c0bcc8c5d493eed1e52c  include/crypto/lhash.h
-0651a33eb67395c48ca64650dc2912326b7c0b7b47832e0c59bc4139e7f271c6  include/crypto/md32_common.h
+0651a33eb67395c48ca64650dc2912326b7c0b7b47832e0c59bc4139e7f271c6  include/crypto/md32_common.inc
 47a92e596adaf252ed86d3c363e1b7d1893445aaef302eb50cf18473c3c08541  include/crypto/ml_dsa.h
 60b558f2990b9f390dee864dbd15372a98dc2dd95c4701c088a5a804198e7421  include/crypto/ml_kem.h
 b7a00f7e37fb4054d371438f270e67eb584eacb9b13fe29536dac90e8371436d  include/crypto/modes.h
index 1b18cd626bca0f6c17bef295adafbc2eef77bcae..f9a12d71052c7077b1f4b0fc1ce8f5dcdbaa9af9 100644 (file)
@@ -453,7 +453,7 @@ include/crypto/ec.h
 include/crypto/ecx.h
 include/crypto/evp.h
 include/crypto/lhash.h
-include/crypto/md32_common.h
+include/crypto/md32_common.inc
 include/crypto/ml_dsa.h
 include/crypto/ml_kem.h
 include/crypto/modes.h
index 16c723bf73d11d8ef84b852d0c2d0e328458ef34..60b64ed69c2009f47cd33a864c7084ba5250098e 100644 (file)
@@ -1,5 +1,5 @@
 s|internal/([a-z0-9_]+)_int\.h|crypto/\1.h|g ;
-s@internal/(aria.h|asn1_dsa.h|async.h|bn_dh.h|bn_srp.h|chacha.h|(aes|des|cmll)_platform.h|ctype.h|__DECC_INCLUDE_EPILOGUE.H|__DECC_INCLUDE_PROLOGUE.H|dso_conf.h|dso_conf.h|lhash.h|md32_common.h|objects.h|poly1305.h|sha.h|siphash.h|sm2err.h|sm2.h|sm4.h|sparse_array.h|store.h|foobar)@crypto/\1@g ;
+s@internal/(aria.h|asn1_dsa.h|async.h|bn_dh.h|bn_srp.h|chacha.h|(aes|des|cmll)_platform.h|ctype.h|__DECC_INCLUDE_EPILOGUE.H|__DECC_INCLUDE_PROLOGUE.H|dso_conf.h|dso_conf.h|lhash.h|objects.h|poly1305.h|sha.h|siphash.h|sm2err.h|sm2.h|sm4.h|sparse_array.h|store.h|foobar)@crypto/\1@g ;
 s/constant_time_locl/constant_time/g ;
 s/_lo?cl\.h/_local.h/g ;
 s/_int\.h/_local.h/g ;