From 7ab114e0fa92589d6e46062da9ad9522a114bbc0 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 19 Jun 2020 01:25:39 +0200 Subject: Windows: Fix wrong results in benchmark of encryption algorithms when RAM encryption is enabled --- src/Common/Dlgcode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; -- cgit v1.2.3