diff options
Diffstat (limited to 'src/kdf/kdf1')
-rw-r--r-- | src/kdf/kdf1/kdf1.h | 3 |
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()) {} |