Windows: support RAM encryption only if t1ha2 algorithm self test succeeds

This commit is contained in:
Mounir IDRASSI 2020-06-20 18:02:45 +02:00
parent 0121dc0b81
commit e97114e7a0
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -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