aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf/sp800_108
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/kdf/sp800_108
parent406c8e6668de8241bfd889bb4c29ea780b38a859 (diff)
Use explicit on more single-argument constructors
Diffstat (limited to 'src/lib/kdf/sp800_108')
-rw-r--r--src/lib/kdf/sp800_108/sp800_108.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/kdf/sp800_108/sp800_108.h b/src/lib/kdf/sp800_108/sp800_108.h
index d74c876f7..25802f69e 100644
--- a/src/lib/kdf/sp800_108/sp800_108.h
+++ b/src/lib/kdf/sp800_108/sp800_108.h
@@ -48,7 +48,7 @@ class BOTAN_PUBLIC_API(2,0) SP800_108_Counter final : public KDF
/**
* @param mac MAC algorithm to use
*/
- SP800_108_Counter(MessageAuthenticationCode* mac) : m_prf(mac) {}
+ explicit SP800_108_Counter(MessageAuthenticationCode* mac) : m_prf(mac) {}
private:
std::unique_ptr<MessageAuthenticationCode> m_prf;
};
@@ -85,7 +85,7 @@ class BOTAN_PUBLIC_API(2,0) SP800_108_Feedback final : public KDF
const uint8_t salt[], size_t salt_len,
const uint8_t label[], size_t label_len) const override;
- SP800_108_Feedback(MessageAuthenticationCode* mac) : m_prf(mac) {}
+ explicit SP800_108_Feedback(MessageAuthenticationCode* mac) : m_prf(mac) {}
private:
std::unique_ptr<MessageAuthenticationCode> m_prf;
};
@@ -122,7 +122,7 @@ class BOTAN_PUBLIC_API(2,0) SP800_108_Pipeline final : public KDF
const uint8_t salt[], size_t salt_len,
const uint8_t label[], size_t label_len) const override;
- SP800_108_Pipeline(MessageAuthenticationCode* mac) : m_prf(mac) {}
+ explicit SP800_108_Pipeline(MessageAuthenticationCode* mac) : m_prf(mac) {}
private:
std::unique_ptr<MessageAuthenticationCode> m_prf;