diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-19 01:25:39 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-19 01:28:14 +0200 |
commit | 7ab114e0fa92589d6e46062da9ad9522a114bbc0 (patch) | |
tree | ea6f6c18a658804b025e9d9ffd46a69d4e31b8a7 | |
parent | 0e3f4c40e3b1c5d8958148b079d4e9c6ae60ae69 (diff) | |
download | VeraCrypt-7ab114e0fa92589d6e46062da9ad9522a114bbc0.tar.gz VeraCrypt-7ab114e0fa92589d6e46062da9ad9522a114bbc0.zip |
Windows: Fix wrong results in benchmark of encryption algorithms when RAM encryption is enabled
-rw-r--r-- | src/Common/Dlgcode.c | 5 |
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; |