1 #ifndef _KVI_CRYPT_ENGINE_H_
2 #define _KVI_CRYPT_ENGINE_H_
44 #ifdef COMPILE_CRYPT_SUPPORT
49 #endif //COMPILE_CRYPT_SUPPORT
57 friend class KviCryptEngineManager;
86 #ifdef COMPILE_CRYPT_SUPPORT
88 crypt_engine_deallocator_func m_deallocFunc;
89 QString m_szLastError;
93 void setMaxEncryptLen(
int m) { m_iMaxEncryptLen =
m; };
94 int maxEncryptLen() {
return m_iMaxEncryptLen; };
95 virtual bool init(
const char * encKey,
int encKeyLen,
const char * decKey,
int decKeyLen);
110 virtual EncryptResult encrypt(
const char * plainText,
KviCString & outBuffer);
118 virtual DecryptResult decrypt(
const char * inBuffer,
KviCString & plainText);
124 const QString & lastError() {
return m_szLastError; };
129 void clearLastError() { m_szLastError =
""; };
130 void setLastError(
const QString & err) { m_szLastError = err; };
131 #endif //COMPILE_CRYPT_SUPPORT
134 #endif // _KVI_CRYPT_ENGINE_H_
EncryptResult
Definition: KviCryptEngine.h:68
Definition: KviHeapObject.h:124
Definition: KviCString.h:105
#define m
Definition: detector.cpp:77
DecryptResult
Definition: KviCryptEngine.h:75
Definition: KviCryptEngine.h:71
Definition: KviCryptEngine.h:54
Definition: KviCryptEngine.h:78
int init()
Definition: winamp.cpp:118
Definition: KviCryptEngine.h:79
This file contains compile time settings.
Definition: KviCryptEngine.h:77
Definition: KviCryptEngine.h:70
EngineFlag
Definition: KviCryptEngine.h:60
#define KVILIB_API
Definition: kvi_settings.h:125