aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf
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
parent406c8e6668de8241bfd889bb4c29ea780b38a859 (diff)
Use explicit on more single-argument constructors
Diffstat (limited to 'src/lib/kdf')
-rw-r--r--src/lib/kdf/kdf1_iso18033/kdf1_iso18033.h2
-rw-r--r--src/lib/kdf/sp800_108/sp800_108.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/kdf/kdf1_iso18033/kdf1_iso18033.h b/src/lib/kdf/kdf1_iso18033/kdf1_iso18033.h
index fcd465436..7a95a093b 100644
--- a/src/lib/kdf/kdf1_iso18033/kdf1_iso18033.h
+++ b/src/lib/kdf/kdf1_iso18033/kdf1_iso18033.h
@@ -31,7 +31,7 @@ class BOTAN_PUBLIC_API(2,0) KDF1_18033 final : public KDF
/**
* @param h hash function to use
*/
- KDF1_18033(HashFunction* h) : m_hash(h) {}
+ explicit KDF1_18033(HashFunction* h) : m_hash(h) {}
private:
std::unique_ptr<HashFunction> m_hash;
};
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;