monotone

monotone Mtn Source Tree

Root/botan/cts.h

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

Archive Download this file

Branches

Tags

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