1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: Fix wrong results in benchmark of encryption algorithms when RAM encryption is enabled

This commit is contained in:
Mounir IDRASSI
2020-06-19 01:25:39 +02:00
parent 0e3f4c40e3
commit 7ab114e0fa

View File

@@ -5808,6 +5808,11 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg)
if (!EAInitMode (ci, ci->k2)) if (!EAInitMode (ci, ci->k2))
goto counter_error; goto counter_error;
#ifdef _WIN64
if (IsRamEncryptionEnabled ())
VcProtectKeys (ci, VcGetEncryptionID (ci));
#endif
if (QueryPerformanceCounter (&performanceCountStart) == 0) if (QueryPerformanceCounter (&performanceCountStart) == 0)
goto counter_error; goto counter_error;