1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-15 00:56:07 -05:00

Add alignment constants for derived key and KEY_INFO buffers to ensure SIMD compatibility. (#1526)

This commit is contained in:
Bernard Ladenthin
2025-04-21 11:26:34 +02:00
committed by GitHub
parent 5eb358ca18
commit 0478be3626
2 changed files with 10 additions and 4 deletions
+6
View File
@@ -35,6 +35,12 @@ extern "C" {
// specifies the minimum program version required to decrypt the system partition/drive
#define TC_SYSENC_KEYSCOPE_MIN_REQ_PROG_VERSION 0x010b
// Required 16-byte alignment for derived key buffers to ensure optimal performance and compatibility with SIMD instructions.
#define TC_DERIVED_KEY_BUFFER_ALIGNMENT 16
// Required 16-byte alignment for KEY_INFO buffer to ensure optimal performance and compatibility with SIMD instructions.
#define TC_KEY_INFO_BUFFER_ALIGNMENT 16
// Current volume format version (created by TrueCrypt 6.0+)
#define TC_VOLUME_FORMAT_VERSION 2