diff options
author | lloyd <[email protected]> | 2010-11-01 17:25:48 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-01 17:25:48 +0000 |
commit | 04cb06b11bbb64a6bf947abec8849d1bf02ec093 (patch) | |
tree | dc6508dfcc6084d7e52cfb2861462b8614a4dec4 /src/pbkdf/pbkdf.h | |
parent | ba069386cdfb31720fa5a305c81baa18a0c8504d (diff) |
Add new top-level algorithm which provides basic functionality: name
query, clearing, and cloning. Applies to ciphers, hashes, MACs, and
PBKDFs. May extend to KDFs later as well.
A single combined hierarchy in particular will make the algo_factory
much simpler.
Diffstat (limited to 'src/pbkdf/pbkdf.h')
-rw-r--r-- | src/pbkdf/pbkdf.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/pbkdf/pbkdf.h b/src/pbkdf/pbkdf.h index 91883f9e2..e8e841562 100644 --- a/src/pbkdf/pbkdf.h +++ b/src/pbkdf/pbkdf.h @@ -8,6 +8,7 @@ #ifndef BOTAN_PBKDF_H__ #define BOTAN_PBKDF_H__ +#include <botan/algo_base.h> #include <botan/symkey.h> namespace Botan { @@ -17,7 +18,7 @@ namespace Botan { * implementations. Converts a password into a key using a salt * and iterated hashing to make brute force attacks harder. */ -class BOTAN_DLL PBKDF +class BOTAN_DLL PBKDF : public Algorithm { public: @@ -26,16 +27,7 @@ class BOTAN_DLL PBKDF */ virtual PBKDF* clone() const = 0; - /** - * Get the algorithm name. - * @return name of this PBKDF algorithm - */ - virtual std::string name() const = 0; - - /** - * Clear this objects internal values. - */ - virtual void clear() {} + void clear() {} /** * Derive a key from a passphrase |