aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/kdf1
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-01 17:32:39 +0000
committerlloyd <[email protected]>2010-11-01 17:32:39 +0000
commit89f8b0625ddd3eb7d2010324ec0fc2f0aa719b36 (patch)
tree20b6b5936d62360de409e6ac6b83665eb4a9f373 /src/kdf/kdf1
parent04cb06b11bbb64a6bf947abec8849d1bf02ec093 (diff)
Derive KDF from Algorithm
Diffstat (limited to 'src/kdf/kdf1')
-rw-r--r--src/kdf/kdf1/kdf1.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kdf/kdf1/kdf1.h b/src/kdf/kdf1/kdf1.h
index fd950cd9b..f627235be 100644
--- a/src/kdf/kdf1/kdf1.h
+++ b/src/kdf/kdf1/kdf1.h
@@ -23,6 +23,9 @@ class BOTAN_DLL KDF1 : public KDF
const byte secret[], size_t secret_len,
const byte P[], size_t P_len) const;
+ std::string name() const { return "KDF1(" + hash->name() + ")"; }
+ KDF* clone() const { return new KDF1(hash->clone()); }
+
KDF1(HashFunction* h) : hash(h) {}
KDF1(const KDF1& other) : KDF(), hash(other.hash->clone()) {}