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

Windows: call VcProtectKeys in benchmark warm-up when RAM encryption is enabled in order to be follow the same execution path as the result of benchmark calculations.

This commit is contained in:
Mounir IDRASSI
2020-06-20 15:02:09 +02:00
parent 4f1de9666a
commit d031addc2c

View File

@@ -5787,6 +5787,10 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg)
if (EAInitMode (ci, ci->k2)) if (EAInitMode (ci, ci->k2))
{ {
int i; int i;
#ifdef _WIN64
if (IsRamEncryptionEnabled ())
VcProtectKeys (ci, VcGetEncryptionID (ci));
#endif
for (i = 0; i < 10; i++) for (i = 0; i < 10; i++)
{ {