diff options
author | Daniel Neus <[email protected]> | 2015-12-20 23:08:14 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2015-12-20 23:08:14 +0100 |
commit | 16c25957a424e7a622ae20e751a9b6ff0fba61b5 (patch) | |
tree | f4849d6e428ced67a353577b6f334a8b782552a5 /src/build-data | |
parent | 8ce0a52ba72837b3e3e8aee63f7ce3a96ca07178 (diff) |
RdRand and RdSeed logic changes
* Make it configurable how often RdRand and RdSeed is polled
* Make it configurable how many RdSeed retries are executed
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 c6c4f9064..84756536d 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -173,6 +173,19 @@ softare-based entropy polling is still used. */ #define BOTAN_ENTROPY_ESTIMATE_HARDWARE_RNG 0.0 +/* +How often should the RdRand/RdSeed RNGs be polled + +Each poll generates 32 bit entropy +*/ +#define BOTAN_ENTROPY_INTEL_RNG_POLLS 32 + +/* +* RdSeed is not guaranteed to generate a random number within a specific number of retries +* Define the number of retries here +*/ +#define BOTAN_ENTROPY_RDSEED_RETRIES 20 + // The output of a PRNG we are trusting to be strong #define BOTAN_ENTROPY_ESTIMATE_STRONG_RNG 7.0 |