aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 12:42:03 -0400
committerJack Lloyd <[email protected]>2017-09-30 12:42:03 -0400
commit353331954e806a8d336132c740b8888bc7bf3650 (patch)
treec333e691928533c3f6c25d1530a6374c8618a134 /src/lib/rng
parent406c8e6668de8241bfd889bb4c29ea780b38a859 (diff)
Use explicit on more single-argument constructors
Diffstat (limited to 'src/lib/rng')
-rw-r--r--src/lib/rng/hmac_drbg/hmac_drbg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rng/hmac_drbg/hmac_drbg.h b/src/lib/rng/hmac_drbg/hmac_drbg.h
index bcde0db13..edf38b684 100644
--- a/src/lib/rng/hmac_drbg/hmac_drbg.h
+++ b/src/lib/rng/hmac_drbg/hmac_drbg.h
@@ -31,7 +31,7 @@ class BOTAN_PUBLIC_API(2,0) HMAC_DRBG final : public Stateful_RNG
* in response. In this case, an exception will be thrown rather
* than generating duplicated output.
*/
- HMAC_DRBG(std::unique_ptr<MessageAuthenticationCode> prf);
+ explicit HMAC_DRBG(std::unique_ptr<MessageAuthenticationCode> prf);
/**
* Initialize an HMAC_DRBG instance with the given MAC as PRF (normally HMAC)
@@ -122,7 +122,7 @@ class BOTAN_PUBLIC_API(2,0) HMAC_DRBG final : public Stateful_RNG
/**
* Constructor taking a string for the hash
*/
- HMAC_DRBG(const std::string& hmac_hash) :
+ explicit HMAC_DRBG(const std::string& hmac_hash) :
Stateful_RNG(),
m_mac(MessageAuthenticationCode::create_or_throw("HMAC(" + hmac_hash + ")")),
m_max_number_of_bytes_per_request(64 * 1024)