VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-12-30 00:34:52 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-12-30 00:42:39 +0100
commitf63c2ec13c5f74e5211409ae2c3367a2171adb83 (patch)
treed7d7899b5e078d1bc14c0c3e4ce0092d1a76e9d1 /src/Common
parentfac35ab08abc26d05e4b737d716f77ac794798d2 (diff)
downloadVeraCrypt-f63c2ec13c5f74e5211409ae2c3367a2171adb83.tar.gz
VeraCrypt-f63c2ec13c5f74e5211409ae2c3367a2171adb83.zip
Windows driver: Set maximum values for encryption queue parameters. Add IOCTL code to read used values from user space maximum value for EncryptionFragmentSize is 2048 maximum value for EncryptionIoRequestCount is 8192 maximum value for EncryptionItemCount is (EncryptionIoRequestCount/2)
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Apidrvr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Common/Apidrvr.h b/src/Common/Apidrvr.h
index 368d4a72..36946e6c 100644
--- a/src/Common/Apidrvr.h
+++ b/src/Common/Apidrvr.h
@@ -127,6 +127,8 @@
#define VC_IOCTL_IS_RAM_ENCRYPTION_ENABLED TC_IOCTL (42)
+#define VC_IOCTL_ENCRYPTION_QUEUE_PARAMS TC_IOCTL (43)
+
// Legacy IOCTLs used before version 5.0
#define TC_IOCTL_LEGACY_GET_DRIVER_VERSION 466968
#define TC_IOCTL_LEGACY_GET_MOUNTED_VOLUMES 466948
@@ -390,6 +392,13 @@ typedef struct
BOOL HwEncryptionEnabled;
} GetSystemDriveDumpConfigRequest;
+typedef struct
+{
+ int EncryptionIoRequestCount;
+ int EncryptionItemCount;
+ int EncryptionFragmentSize;
+} EncryptionQueueParameters;
+
#pragma pack (pop)
#define DRIVER_STR WIDE