diff options
Diffstat (limited to 'old/botan/build/botan/hmac.h')
-rw-r--r-- | old/botan/build/botan/hmac.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/old/botan/build/botan/hmac.h b/old/botan/build/botan/hmac.h new file mode 100644 index 0000000..932af71 --- /dev/null +++ b/old/botan/build/botan/hmac.h @@ -0,0 +1,38 @@ +/* +* HMAC +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#ifndef BOTAN_HMAC_H__ +#define BOTAN_HMAC_H__ + +#include <botan/mac.h> +#include <botan/hash.h> + +namespace Botan { + +/* +* HMAC +*/ +class BOTAN_DLL HMAC : public MessageAuthenticationCode + { + public: + void clear() throw(); + std::string name() const; + MessageAuthenticationCode* clone() const; + + HMAC(HashFunction* hash); + ~HMAC() { delete hash; } + private: + void add_data(const byte[], u32bit); + void final_result(byte[]); + void key_schedule(const byte[], u32bit); + HashFunction* hash; + SecureVector<byte> i_key, o_key; + }; + +} + +#endif |