diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-20 18:02:45 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-21 00:27:22 +0200 |
commit | e97114e7a0aa835cc43876b5431fe42d3a6bf4f1 (patch) | |
tree | bdaf005b7b63bae12e5e87ea5b9587448f7ca8ea /src/Common | |
parent | 0121dc0b81722ac07abac27d8215c524260bb3f2 (diff) | |
download | VeraCrypt-e97114e7a0aa835cc43876b5431fe42d3a6bf4f1.tar.gz VeraCrypt-e97114e7a0aa835cc43876b5431fe42d3a6bf4f1.zip |
Windows: support RAM encryption only if t1ha2 algorithm self test succeeds
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Crypto.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |