diff options
-rw-r--r-- | src/Common/Crypto.c | 2 | ||||
-rw-r--r-- | src/Common/Crypto.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c index 501cd165..89ce2508 100644 --- a/src/Common/Crypto.c +++ b/src/Common/Crypto.c @@ -1217,7 +1217,7 @@ BOOL IsHwEncryptionEnabled () #endif // !TC_WINDOWS_BOOT -#ifndef TC_WINDOWS_BOOT +#if !defined (TC_WINDOWS_BOOT) && !defined (_UEFI) static BOOL CpuRngDisabled = TRUE; static BOOL RamEncryptionEnabled = FALSE; diff --git a/src/Common/Crypto.h b/src/Common/Crypto.h index 600fee92..a31152f2 100644 --- a/src/Common/Crypto.h +++ b/src/Common/Crypto.h @@ -208,10 +208,12 @@ typedef struct # include "GostCipher.h" # include "kuznyechik.h" # include "Camellia.h" +#if !defined (_UEFI) # include "chachaRng.h" # ifdef _WIN64 # include "t1ha.h" # endif +#endif #else # include "CamelliaSmall.h" #endif |