VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-19 01:25:39 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-19 01:28:14 +0200
commit7ab114e0fa92589d6e46062da9ad9522a114bbc0 (patch)
treeea6f6c18a658804b025e9d9ffd46a69d4e31b8a7 /src
parent0e3f4c40e3b1c5d8958148b079d4e9c6ae60ae69 (diff)
downloadVeraCrypt-7ab114e0fa92589d6e46062da9ad9522a114bbc0.tar.gz
VeraCrypt-7ab114e0fa92589d6e46062da9ad9522a114bbc0.zip
Windows: Fix wrong results in benchmark of encryption algorithms when RAM encryption is enabled
Diffstat (limited to 'src')
-rw-r--r--src/Common/Dlgcode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 4dee81b1..be4ee043 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -5808,6 +5808,11 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg)
if (!EAInitMode (ci, ci->k2))
goto counter_error;
+#ifdef _WIN64
+ if (IsRamEncryptionEnabled ())
+ VcProtectKeys (ci, VcGetEncryptionID (ci));
+#endif
+
if (QueryPerformanceCounter (&performanceCountStart) == 0)
goto counter_error;