VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-01 15:07:56 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-01 15:09:35 +0200
commit3923d11c7b8ebcb26a3e097b1bc447bee722f34d (patch)
tree5d44524ed23d0f84e2f64e5417a9f8cf026471df
parent9b804137e0095c66eff17856cced5bcf5784eb7a (diff)
downloadVeraCrypt-3923d11c7b8ebcb26a3e097b1bc447bee722f34d.tar.gz
VeraCrypt-3923d11c7b8ebcb26a3e097b1bc447bee722f34d.zip
Windows Driver: Disable Hibernation when RAM encryption is enabled since we can't resume from Hibernation without RAM encryption keys (a chicken and egg situation)
-rw-r--r--src/Driver/DriveFilter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Driver/DriveFilter.c b/src/Driver/DriveFilter.c
index 9700226f..3813992d 100644
--- a/src/Driver/DriveFilter.c
+++ b/src/Driver/DriveFilter.c
@@ -660,6 +660,12 @@ static NTSTATUS MountDrive (DriveFilterExtension *Extension, Password *password,
{
CrashDumpEnabled = TRUE;
HibernationEnabled = TRUE;
+#ifdef _WIN64
+ if (IsRamEncryptionEnabled())
+ {
+ HibernationEnabled = FALSE;
+ }
+#endif
}
else if (!LegacyHibernationDriverFilterActive)
StartLegacyHibernationDriverFilter();