1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Windows: Use Hardware RNG based on CPU timing jitter "Jitterentropy" by Stephan Mueller as a good alternative to RDRAND (http://www.chronox.de/jent.html, smueller@chronox.de)

This commit is contained in:
Mounir IDRASSI
2019-02-12 18:49:12 +01:00
parent a5943c07fb
commit 86f0fde6e7
12 changed files with 1084 additions and 5 deletions

View File

@@ -25,6 +25,23 @@
#define ATT_NOPREFIX
#endif
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
#if defined(TC_WINDOWS_DRIVER) || defined (_UEFI)
#if defined(__cplusplus)
extern "C" {
#endif
extern unsigned __int64 __rdtsc();
#if defined(__cplusplus)
}
#endif
#else
#include <intrin.h>
#ifdef _MSC_VER
#pragma intrinsic(__rdtsc)
#endif
#endif
#endif
#ifdef CRYPTOPP_GENERATE_X64_MASM
#define CRYPTOPP_X86_ASM_AVAILABLE