diff options
author | lloyd <[email protected]> | 2006-05-18 18:33:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-05-18 18:33:19 +0000 |
commit | a2c99d3270eb73ef2db5704fc54356c6b75096f8 (patch) | |
tree | ad3d6c4fcc8dd0f403f8105598943616246fe172 /include/kdf.h |
Initial checkin1.5.6
Diffstat (limited to 'include/kdf.h')
-rw-r--r-- | include/kdf.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/include/kdf.h b/include/kdf.h new file mode 100644 index 000000000..ee020dcfa --- /dev/null +++ b/include/kdf.h @@ -0,0 +1,57 @@ +/************************************************* +* KDF Header File * +* (C) 1999-2006 The Botan Project * +*************************************************/ + +#ifndef BOTAN_KDF_H__ +#define BOTAN_KDF_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* KDF1 * +*************************************************/ +class KDF1 : public KDF + { + public: + KDF1(const std::string&); + private: + SecureVector<byte> derive(u32bit, const byte[], u32bit, + const byte[], u32bit) const; + + const std::string hash_name; + }; + +/************************************************* +* KDF2 * +*************************************************/ +class KDF2 : public KDF + { + public: + + KDF2(const std::string&); + private: + SecureVector<byte> derive(u32bit, const byte[], u32bit, + const byte[], u32bit) const; + const std::string hash_name; + }; + +/************************************************* +* X9.42 PRF * +*************************************************/ +class X942_PRF : public KDF + { + public: + X942_PRF(const std::string&); + private: + SecureVector<byte> derive(u32bit, const byte[], u32bit, + const byte[], u32bit) const; + + std::string key_wrap_oid; + }; + +} + +#endif |