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
"
13
#include "
GrayCore/include/cString.h
"
14
15
namespace
GrayLib
16
{
17
class
GRAYLIB_LINK
cCipherText
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
38
UNITTEST_FRIEND
(
cCipherText
);
39
};
40
};
41
#endif
GRAYLIB_LINK
#define GRAYLIB_LINK
Definition:
GrayLibBase.h:35
HRESULT
INT32 HRESULT
_WIN32 style error codes. INT32
Definition:
SysTypes.h:465
cCipherBase.h
cString.h
GrayLib::cCipherBase
Definition:
cCipherBase.h:125
GrayLib::cCipherText
Definition:
cCipherText.h:18
GrayLib::cCipherText::UNITTEST_FRIEND
UNITTEST_FRIEND(cCipherText)
Gray::cStringT< char >
GrayLib
Definition:
cMesh.h:22
Gray::StrLen_t
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
GrayLib
include
Cipher
cCipherText.h
Generated on Tue Feb 2 2021 11:29:36 for Gray C++ Libraries by
1.9.1