From e97114e7a0aa835cc43876b5431fe42d3a6bf4f1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 20 Jun 2020 18:02:45 +0200 Subject: Windows: support RAM encryption only if t1ha2 algorithm self test succeeds --- src/Common/Crypto.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c index 913495f4..550de2b3 100644 --- a/src/Common/Crypto.c +++ b/src/Common/Crypto.c @@ -1243,7 +1243,10 @@ BOOL IsCpuRngEnabled () BOOL IsRamEncryptionSupported () { #ifdef _WIN64 - return TRUE; + if (t1ha_selfcheck__t1ha2() == 0) + return TRUE; + else + return FALSE; #else return FALSE; #endif -- cgit v1.2.3