aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-01-23 10:44:18 -0500
committerJack Lloyd <[email protected]>2016-07-17 10:43:40 -0400
commit4c5847412d41756aab738a3746666cfaffe5d4af (patch)
tree2c1956bdaed1a9528575ff033c9973c8c417ccae /src/lib
parent255ec3717e95492184c9499685b7204a292f7141 (diff)
Make the DRBG hash selectable in build.h with BOTAN_AUTO_RNG_DRBG_HASH_FUNCTION
Add some missing overrides
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/rng/hmac_drbg/hmac_drbg.h4
-rw-r--r--src/lib/rng/rng.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/rng/hmac_drbg/hmac_drbg.h b/src/lib/rng/hmac_drbg/hmac_drbg.h
index d7a1d76aa..f52ae9de1 100644
--- a/src/lib/rng/hmac_drbg/hmac_drbg.h
+++ b/src/lib/rng/hmac_drbg/hmac_drbg.h
@@ -28,10 +28,10 @@ class BOTAN_DLL HMAC_DRBG final : public Stateful_RNG
void clear() override;
- void randomize(byte output[], size_t output_len);
+ void randomize(byte output[], size_t output_len) override;
void randomize_with_input(byte output[], size_t output_len,
- const byte input[], size_t input_len);
+ const byte input[], size_t input_len) override;
void add_entropy(const byte input[], size_t input_len) override;
private:
diff --git a/src/lib/rng/rng.cpp b/src/lib/rng/rng.cpp
index 218b9c842..526693561 100644
--- a/src/lib/rng/rng.cpp
+++ b/src/lib/rng/rng.cpp
@@ -112,7 +112,7 @@ RandomNumberGenerator* RandomNumberGenerator::make_rng()
AutoSeeded_RNG::AutoSeeded_RNG(size_t max_bytes_before_reseed)
{
- m_rng.reset(new HMAC_DRBG("SHA-384", max_bytes_before_reseed));
+ m_rng.reset(new HMAC_DRBG(BOTAN_AUTO_RNG_DRBG_HASH_FUNCTION, max_bytes_before_reseed));
size_t bits = m_rng->reseed(384);
if(!m_rng->is_seeded())
{