Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cCipherText.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cCipherText_H
7 #define _INC_cCipherText_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cCipherBase.h"
14 
15 namespace GrayLib
16 {
18  {
24 
25  private:
26  cCipherBase* m_pCipher; // What cipher to use ?
27 
28  public:
29  cCipherText(cCipherBase* pCipher);
30  ~cCipherText();
31 
32  HRESULT EncryptText(const void* pszSrc, size_t nSrcSize, char* pszDst, StrLen_t iDstMaxLen) const;
33  HRESULT DecryptText(const char* pszSrc, StrLen_t nSrcSize, void* pszDst, size_t iDstMaxLen) const;
34 
35  cStringA EncryptText(const char* pszSrc, StrLen_t nSrcSize = -1) const;
36  cStringA DecryptText(const char* pszSrc, StrLen_t nSrcSize = -1) const;
37 
39  };
40 };
41 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cCipherBase.h:125
Definition: cCipherText.h:18
UNITTEST_FRIEND(cCipherText)
Definition: cMesh.h:22
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32