monotone

monotone Mtn Source Tree

Root/botan/hmac.h

1/*************************************************
2* HMAC Header File *
3* (C) 1999-2007 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_HMAC_H__
7#define BOTAN_HMAC_H__
8
9#include <botan/base.h>
10
11namespace Botan {
12
13/*************************************************
14* HMAC *
15*************************************************/
16class HMAC : public MessageAuthenticationCode
17 {
18 public:
19 void clear() throw();
20 std::string name() const;
21 MessageAuthenticationCode* clone() const;
22 HMAC(const std::string&);
23 ~HMAC() { delete hash; }
24 private:
25 void add_data(const byte[], u32bit);
26 void final_result(byte[]);
27 void key(const byte[], u32bit);
28 HashFunction* hash;
29 SecureVector<byte> i_key, o_key;
30 };
31
32}
33
34#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status