aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/kdf2
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdf/kdf2')
-rw-r--r--src/kdf/kdf2/kdf2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kdf/kdf2/kdf2.h b/src/kdf/kdf2/kdf2.h
index f2fd7630d..e85fe6d1c 100644
--- a/src/kdf/kdf2/kdf2.h
+++ b/src/kdf/kdf2/kdf2.h
@@ -22,6 +22,9 @@ class BOTAN_DLL KDF2 : public KDF
SecureVector<byte> derive(size_t, const byte[], size_t,
const byte[], size_t) const;
+ std::string name() const { return "KDF2(" + hash->name() + ")"; }
+ KDF* clone() const { return new KDF2(hash->clone()); }
+
KDF2(HashFunction* h) : hash(h) {}
KDF2(const KDF2& other) : KDF(), hash(other.hash->clone()) {}
~KDF2() { delete hash; }