monotone

monotone Mtn Source Tree

Root/botan/modebase.h

1/*************************************************
2* Block Cipher Mode Header File *
3* (C) 1999-2007 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_MODEBASE_H__
7#define BOTAN_MODEBASE_H__
8
9#include <botan/basefilt.h>
10
11namespace Botan {
12
13/*************************************************
14* Block Cipher Mode *
15*************************************************/
16class BlockCipherMode : public Keyed_Filter
17 {
18 public:
19 std::string name() const;
20
21 BlockCipherMode(const std::string&, const std::string&,
22 u32bit, u32bit = 0, u32bit = 1);
23 virtual ~BlockCipherMode() { delete cipher; }
24 protected:
25 void set_iv(const InitializationVector&);
26 const u32bit BLOCK_SIZE, BUFFER_SIZE, IV_METHOD;
27 const std::string mode_name;
28 BlockCipher* cipher;
29 SecureVector<byte> buffer, state;
30 u32bit position;
31 };
32
33}
34
35#endif

Archive Download this file

Branches

Tags

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