Pol  Revision:3cfda13
cryptkey.h
Go to the documentation of this file.
1 /********************************************************************
2 ** cryptkey.h : Encryption keys (and 'type' codes)
3 **
4 ** Created: 3/1/2003, 2:59
5 ** Author: TJ Houston <tjh@myrathi.co.uk>
6 **
7 *********************************************************************/
8 #ifndef __CRYPTKEY_H__
9 #define __CRYPTKEY_H__
10 
11 #include <string>
12 
13 namespace Pol
14 {
15 namespace Crypt
16 {
17 // Encryption Types
19 {
20  CRYPT_NOCRYPT = 0, //- no encryption
23  CRYPT_BLOWFISH = 3, //- <=2.0.0 (BlowFish)
24  CRYPT_BLOWFISH_TWOFISH = 4, //- 2.0.3 (BlowFish+TwoFish)
25  CRYPT_TWOFISH = 5 //- >2.0.3 (TwoFish)
26 };
27 
28 // Encryption keys and type
29 typedef struct _CryptInfo
30 {
31  unsigned int uiKey1;
32  unsigned int uiKey2;
34 } TCryptInfo;
35 
36 void CalculateCryptKeys( const std::string& name, TCryptInfo& infoCrypt );
37 }
38 }
39 
40 #endif //__CRYPTKEY_H__
ECryptType eType
Definition: cryptkey.h:33
unsigned int uiKey1
Definition: cryptkey.h:31
struct Pol::Crypt::_CryptInfo TCryptInfo
unsigned int uiKey2
Definition: cryptkey.h:32
void CalculateCryptKeys(const std::string &name, TCryptInfo &infoCrypt)
Definition: cryptkey.cpp:31
std::string name
Definition: osmod.cpp:943
Definition: berror.cpp:12