From 321715202aed04dd9892d1c0686d080763ab212d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 2 Mar 2019 10:14:21 +0100 Subject: Windows: Generalize RAM encryption for keys to VeraCrypt binaries, especially Format and Expander --- src/Common/Tests.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Common/Tests.c') diff --git a/src/Common/Tests.c b/src/Common/Tests.c index be0018a8..0af4313e 100644 --- a/src/Common/Tests.c +++ b/src/Common/Tests.c @@ -720,6 +720,11 @@ BOOL TestSectorBufEncryption (PCRYPTO_INFO ci) if (!EAInitMode (ci, key2)) return FALSE; +#ifdef _WIN64 + if (IsRamEncryptionEnabled ()) + VcProtectKeys (ci, VcGetEncryptionID (ci)); +#endif + // Each data unit will contain the same plaintext for (i = 0; i < nbrUnits; i++) { -- cgit v1.2.3