monotone

monotone Mtn Source Tree

Root/botan/cfb.h

1/*************************************************
2* CFB Mode Header File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_CFB_H__
7#define BOTAN_CFB_H__
8
9#include <botan/modebase.h>
10
11namespace Botan {
12
13/*************************************************
14* CFB Encryption *
15*************************************************/
16class CFB_Encryption : public BlockCipherMode
17 {
18 public:
19 CFB_Encryption(const std::string&, u32bit = 0);
20 CFB_Encryption(const std::string&, const SymmetricKey&,
21 const InitializationVector&, u32bit = 0);
22 private:
23 void write(const byte[], u32bit);
24 void feedback();
25 const u32bit FEEDBACK_SIZE;
26 };
27
28/*************************************************
29* CFB Decryption *
30*************************************************/
31class CFB_Decryption : public BlockCipherMode
32 {
33 public:
34 CFB_Decryption(const std::string&, u32bit = 0);
35 CFB_Decryption(const std::string&, const SymmetricKey&,
36 const InitializationVector&, u32bit = 0);
37 private:
38 void write(const byte[], u32bit);
39 void feedback();
40 const u32bit FEEDBACK_SIZE;
41 };
42
43}
44
45#endif

Archive Download this file

Branches

Tags

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