monotone

monotone Mtn Source Tree

Root/botan/x919_mac.h

1/*************************************************
2* ANSI X9.19 MAC Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_ANSI_X919_MAC_H__
7#define BOTAN_ANSI_X919_MAC_H__
8
9#include <botan/base.h>
10
11namespace Botan {
12
13/*************************************************
14* ANSI X9.19 MAC *
15*************************************************/
16class ANSI_X919_MAC : public MessageAuthenticationCode
17 {
18 public:
19 void clear() throw();
20 std::string name() const { return "X9.19-MAC"; }
21 MessageAuthenticationCode* clone() const { return new ANSI_X919_MAC; }
22 ANSI_X919_MAC();
23 ~ANSI_X919_MAC();
24 private:
25 void add_data(const byte[], u32bit);
26 void final_result(byte[]);
27 void key(const byte[], u32bit);
28 BlockCipher* e;
29 BlockCipher* d;
30 SecureBuffer<byte, 8> 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