diff options
author | lloyd <[email protected]> | 2010-11-01 17:32:39 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-01 17:32:39 +0000 |
commit | 89f8b0625ddd3eb7d2010324ec0fc2f0aa719b36 (patch) | |
tree | 20b6b5936d62360de409e6ac6b83665eb4a9f373 /src/kdf/kdf2 | |
parent | 04cb06b11bbb64a6bf947abec8849d1bf02ec093 (diff) |
Derive KDF from Algorithm
Diffstat (limited to 'src/kdf/kdf2')
-rw-r--r-- | src/kdf/kdf2/kdf2.h | 3 |
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; } |