VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-20 18:02:45 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-21 00:27:22 +0200
commite97114e7a0aa835cc43876b5431fe42d3a6bf4f1 (patch)
treebdaf005b7b63bae12e5e87ea5b9587448f7ca8ea /src/Common
parent0121dc0b81722ac07abac27d8215c524260bb3f2 (diff)
downloadVeraCrypt-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.c5
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