mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-21 22:02:37 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user