Pol  Revision:4b29d2b
logincrypt.h
Go to the documentation of this file.
1 //
3 // crypt/logincrypt.h
4 //
6 
7 #ifndef __LOGINCRYPT_H__
8 #define __LOGINCRYPT_H__
9 namespace Pol
10 {
11 namespace Crypt
12 {
14 {
15  // Constructor / Destructor
16 public:
17  LoginCrypt();
18  ~LoginCrypt();
19 
20  // Member Functions
21 
22 public:
23  void Init( unsigned char* lseed, unsigned int k1, unsigned int k2 );
24  void Decrypt( unsigned char* in, unsigned char* out, int len );
25  void Decrypt_Old( unsigned char* in, unsigned char* out, int len );
26  void Decrypt_1_25_36( unsigned char* in, unsigned char* out, int len );
27 
28  unsigned int lkey[2];
29 
30 protected:
31  unsigned int m_k1, m_k2;
32 };
33 }
34 }
35 #endif //__LOGINCRYPT_H__
void Decrypt_Old(unsigned char *in, unsigned char *out, int len)
Definition: logincrypt.cpp:51
unsigned int m_k2
Definition: logincrypt.h:31
unsigned int m_k1
Definition: logincrypt.h:31
void Init(unsigned char *lseed, unsigned int k1, unsigned int k2)
Definition: logincrypt.cpp:22
unsigned int lkey[2]
Definition: logincrypt.h:28
void Decrypt(unsigned char *in, unsigned char *out, int len)
Definition: logincrypt.cpp:34
void Decrypt_1_25_36(unsigned char *in, unsigned char *out, int len)
Definition: logincrypt.cpp:66
Definition: berror.cpp:12