Pol  Revision:3cfda13
blowfish.h
Go to the documentation of this file.
1 //
3 // crypt/blowfish.h
4 //
6 
7 #ifndef __BLOWFISH_H__
8 #define __BLOWFISH_H__
9 
10 #include "cryptbase.h"
11 namespace Pol
12 {
13 namespace Crypt
14 {
15 class BlowFish
16 {
17  // Constructor / Destructor
18 public:
19  BlowFish();
20  ~BlowFish();
21 
22  // Member Functions
23 
24 public:
25  void Init();
26  void Decrypt( unsigned char* in, unsigned char* out, int len );
27 
28 protected:
29  static bool tables_ready;
32  int block_pos;
34 
35  static void InitTables();
36  static void RawDecrypt( unsigned int* values, int table );
37 };
38 }
39 }
40 #endif //__BLOWFISH_H__
static void RawDecrypt(unsigned int *values, int table)
Definition: blowfish.cpp:383
static bool tables_ready
Definition: blowfish.h:29
unsigned char game_seed[CRYPT_GAMESEED_LENGTH]
Definition: blowfish.h:30
static void InitTables()
Definition: blowfish.cpp:337
#define CRYPT_GAMESEED_LENGTH
Definition: cryptbase.h:49
Definition: berror.cpp:12
void Decrypt(unsigned char *in, unsigned char *out, int len)
Definition: blowfish.cpp:290