aboutsummaryrefslogtreecommitdiffstats
path: root/src/pbkdf/pbkdf.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-01 17:25:48 +0000
committerlloyd <[email protected]>2010-11-01 17:25:48 +0000
commit04cb06b11bbb64a6bf947abec8849d1bf02ec093 (patch)
treedc6508dfcc6084d7e52cfb2861462b8614a4dec4 /src/pbkdf/pbkdf.h
parentba069386cdfb31720fa5a305c81baa18a0c8504d (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.h14
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