diff options
Diffstat (limited to 'src/kdf/kdf1/kdf1.cpp')
-rw-r--r-- | src/kdf/kdf1/kdf1.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/kdf/kdf1/kdf1.cpp b/src/kdf/kdf1/kdf1.cpp index aac32db80..0ea375b30 100644 --- a/src/kdf/kdf1/kdf1.cpp +++ b/src/kdf/kdf1/kdf1.cpp @@ -4,8 +4,6 @@ *************************************************/ #include <botan/kdf1.h> -#include <botan/lookup.h> -#include <memory> namespace Botan { @@ -16,20 +14,9 @@ SecureVector<byte> KDF1::derive(u32bit, const byte secret[], u32bit secret_len, const byte P[], u32bit P_len) const { - std::auto_ptr<HashFunction> hash(get_hash(hash_name)); - hash->update(secret, secret_len); hash->update(P, P_len); return hash->final(); } -/************************************************* -* KDF1 Constructor * -*************************************************/ -KDF1::KDF1(const std::string& h_name) : hash_name(h_name) - { - if(!have_hash(hash_name)) - throw Algorithm_Not_Found(hash_name); - } - } |