~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to include/misty1.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*************************************************
2
 
* MISTY1 Header File                             *
3
 
* (C) 1999-2007 The Botan Project                *
4
 
*************************************************/
5
 
 
6
 
#ifndef BOTAN_MISTY1_H__
7
 
#define BOTAN_MISTY1_H__
8
 
 
9
 
#include <botan/base.h>
10
 
 
11
 
namespace Botan {
12
 
 
13
 
/*************************************************
14
 
* MISTY1                                         *
15
 
*************************************************/
16
 
class MISTY1 : public BlockCipher
17
 
   {
18
 
   public:
19
 
      void clear() throw() { EK.clear(); DK.clear(); }
20
 
      std::string name() const { return "MISTY1"; }
21
 
      BlockCipher* clone() const { return new MISTY1; }
22
 
      MISTY1(u32bit = 8);
23
 
   private:
24
 
      void enc(const byte[], byte[]) const;
25
 
      void dec(const byte[], byte[]) const;
26
 
      void key(const byte[], u32bit);
27
 
 
28
 
      static const byte EK_ORDER[100], DK_ORDER[100];
29
 
      SecureBuffer<u16bit, 100> EK, DK;
30
 
   };
31
 
 
32
 
extern const byte MISTY1_SBOX_S7[128];
33
 
extern const u16bit MISTY1_SBOX_S9[512];
34
 
 
35
 
 
36
 
}
37
 
 
38
 
#endif