diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-20 15:02:09 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-21 00:27:08 +0200 |
commit | d031addc2cfe93c40b4b7a7a20be31a86c39033f (patch) | |
tree | fb878f0dff4fa45dccd874a4d08234222a09fe0b | |
parent | 4f1de9666abc476c72462cb6436c85e53eb3f048 (diff) | |
download | VeraCrypt-d031addc2cfe93c40b4b7a7a20be31a86c39033f.tar.gz VeraCrypt-d031addc2cfe93c40b4b7a7a20be31a86c39033f.zip |
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.
-rw-r--r-- | src/Common/Dlgcode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index be4ee043..737e02ef 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -5787,6 +5787,10 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg) if (EAInitMode (ci, ci->k2)) { int i; +#ifdef _WIN64 + if (IsRamEncryptionEnabled ()) + VcProtectKeys (ci, VcGetEncryptionID (ci)); +#endif for (i = 0; i < 10; i++) { |