diff options
author | Jack Lloyd <[email protected]> | 2015-12-19 18:55:35 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-19 18:55:35 -0500 |
commit | 93737a7fe053b154ec56197d85c1b3f009826539 (patch) | |
tree | 02af9208ed3bf8da2d9b0c70e1543b8a169747db /src/build-data | |
parent | cd4b4c04aa045c7bd660360f426c3964c6755306 (diff) |
Move estimate of RDRAND/RDSEED entropy to build.h
GH #370 for background
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/buildh.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index be097d78b..c6c4f9064 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -165,9 +165,22 @@ // Human readable text which has entropy #define BOTAN_ENTROPY_ESTIMATE_SYSTEM_TEXT (1.0 / 64) +/* +The output of a hardware RNG such as RDRAND / RDSEED + +By default such RNGs are used but not trusted, so that the standard +softare-based entropy polling is still used. +*/ +#define BOTAN_ENTROPY_ESTIMATE_HARDWARE_RNG 0.0 + // The output of a PRNG we are trusting to be strong #define BOTAN_ENTROPY_ESTIMATE_STRONG_RNG 7.0 + +/* +* Compiler and target specific flags +*/ + /* Should we use GCC-style inline assembler? */ #if !defined(BOTAN_USE_GCC_INLINE_ASM) && defined(__GNUG__) #define BOTAN_USE_GCC_INLINE_ASM 1 |