From b31bd203d4fe5780f0960773aaf905d2f2cf63d3 Mon Sep 17 00:00:00 2001 From: Bernard Ladenthin Date: Tue, 13 Oct 2026 12:30:32 +0200 Subject: [PATCH] Crypto: document that CRYPTOPP_ALIGN_DATA can expand to nothing (#1842) The macro falls through to an empty definition for the MSVC bootloader build (TC_WINDOWS_BOOT) and for compilers that are neither MSVC nor GCC/Clang. The ks and ks2 members of CRYPTO_INFO are compiled into the bootloader and are declared with it, so the caveat is reachable. --- src/Crypto/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Crypto/config.h b/src/Crypto/config.h index 9e9a2527..1b72bb74 100644 --- a/src/Crypto/config.h +++ b/src/Crypto/config.h @@ -61,6 +61,8 @@ #elif defined(__GNUC__) #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x))) #else + // Note: expands to nothing for the MSVC bootloader build (TC_WINDOWS_BOOT) and for + // compilers that are neither MSVC nor GCC/Clang, so alignment is not guaranteed there. #define CRYPTOPP_ALIGN_DATA(x) #endif #endif