diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-02 00:48:59 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-02 01:00:16 +0100 |
commit | 1994520e75e581f3e8899779f6f70961258e6c0d (patch) | |
tree | 45789dda42859bf6c149481f408bcc31ebf6a1f2 | |
parent | 6252d96b0de2001b29596715c8f3345cc93324f7 (diff) | |
download | VeraCrypt-1994520e75e581f3e8899779f6f70961258e6c0d.tar.gz VeraCrypt-1994520e75e581f3e8899779f6f70961258e6c0d.zip |
Windows: when building for EFI bootloader, don't make calls to RDRAND/RDSEED functions since we don't link against their implementation in EFI bootloader
-rw-r--r-- | src/Crypto/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c index 78cc715a..53912799 100644 --- a/src/Crypto/cpu.c +++ b/src/Crypto/cpu.c @@ -387,7 +387,7 @@ void DetectX86Features() } } } - +#ifndef _UEFI /* Add check fur buggy RDRAND (AMD Ryzen case) even if we always use RDSEED instead of RDRAND when RDSEED available */ if (g_hasRDRAND) { @@ -412,6 +412,7 @@ void DetectX86Features() g_hasRDSEED = 0; } } +#endif if (!g_cacheLineSize) g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE; |