summaryrefslogtreecommitdiffstats
path: root/old/botan/src/modes/ctr/ctr.h
blob: aa0db57618bf7acc5ce04ea540843f751391a651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* CTR Mode
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#ifndef BOTAN_COUNTER_MODE_H__
#define BOTAN_COUNTER_MODE_H__

#include <botan/modebase.h>
#include <botan/modebase.h>

namespace Botan {

/*
* CTR-BE Mode
*/
class BOTAN_DLL CTR_BE : public BlockCipherMode
   {
   public:
      CTR_BE(BlockCipher*);
      CTR_BE(BlockCipher*, const SymmetricKey&, const InitializationVector&);
   private:
      void write(const byte[], u32bit);
      void increment_counter();
   };

}

#endif