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:
@@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user