diff options
author | Jack Lloyd <[email protected]> | 2015-11-28 11:43:00 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-11-28 11:43:00 -0500 |
commit | 466cc0fb0b1a072584c26f0949d377510c440d0d (patch) | |
tree | 1ddf0107d788b1696304bdb604fe685a63163d5e /src/lib/entropy/cryptoapi_rng | |
parent | 3bdf9d1bd8345fc2aa0f1c5ec0261921a77988cf (diff) |
Push the hardcoded entropy estimates up to build.h
Defaults should be fine for everyone but it makes the values more transparent
Diffstat (limited to 'src/lib/entropy/cryptoapi_rng')
-rw-r--r-- | src/lib/entropy/cryptoapi_rng/es_capi.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/entropy/cryptoapi_rng/es_capi.cpp b/src/lib/entropy/cryptoapi_rng/es_capi.cpp index 6ffc03c12..88c8488ad 100644 --- a/src/lib/entropy/cryptoapi_rng/es_capi.cpp +++ b/src/lib/entropy/cryptoapi_rng/es_capi.cpp @@ -57,8 +57,6 @@ class CSP_Handle */ void Win32_CAPI_EntropySource::poll(Entropy_Accumulator& accum) { - const size_t ENTROPY_BITS_PER_BYTE = 8; - secure_vector<byte>& buf = accum.get_io_buf(BOTAN_SYSTEM_RNG_POLL_REQUEST); for(size_t i = 0; i != prov_types.size(); ++i) @@ -67,7 +65,7 @@ void Win32_CAPI_EntropySource::poll(Entropy_Accumulator& accum) if(size_t got = csp.gen_random(buf.data(), buf.size())) { - accum.add(buf.data(), got, ENTROPY_BITS_PER_BYTE); + accum.add(buf.data(), got, BOTAN_ENTROPY_ESTIMATE_STRONG_RNG); break; } } |