KVIrc  4.9.2
DeveloperAPIs
libkvilamerizer.h
Go to the documentation of this file.
1 #ifndef _LIBKVILAMERIZER_H_
2 #define _LIBKVILAMERIZER_H_
3 //=============================================================================
4 //
5 // File : libkvilamerizer.h
6 // Creation date : Sat Now 4 2000 15:41:41 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)
10 // Copyright (C) 2000-2008 Till Bush (buti@geocities.com)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "kvi_settings.h"
29 
30 #ifdef COMPILE_CRYPT_SUPPORT
31 
32 #include "KviCryptEngine.h"
33 
34 class KviLamerizerEngine : public KviCryptEngine
35 {
36  Q_OBJECT
37 public:
38  KviLamerizerEngine(bool bLight);
39  ~KviLamerizerEngine();
40 
41 protected:
42  bool m_bLight;
43 
44 public:
45  virtual bool init(const char * encKey, int encKeyLen, const char * decKey, int decKeyLen);
46  virtual KviCryptEngine::EncryptResult encrypt(const char * plainText, KviCString & outBuffer);
47  virtual KviCryptEngine::DecryptResult decrypt(const char * inBuffer, KviCString & plainText);
48 };
49 
50 #endif // COMPILE_CRYPT_SUPPORT
51 
52 #endif // _LIBKVILAMERIZER_H_
EncryptResult
Definition: KviCryptEngine.h:68
Definition: KviCString.h:105
DecryptResult
Definition: KviCryptEngine.h:75
Definition: KviCryptEngine.h:54
int init()
Definition: winamp.cpp:118
This file contains compile time settings.