monotone

monotone Mtn Source Tree

Root/botan/cbc_mac.h

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

Archive Download this file

Branches

Tags

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