![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cZipDir.h>
Public Member Functions | |
cZipCrypt () | |
~cZipCrypt () | |
bool | InitDecrypt (const char *pszPass, BYTE *pBuffer) |
void | InitEncrypt (const char *pszPass, BYTE *pBuffer, UINT32 dwCRCForCrypting) |
BYTE | EncryptByte (BYTE c) |
BYTE | DecryptByte (BYTE c) |
virtual size_t | get_BlockAlignSize () const override |
virtual HRESULT | Cipher (BYTE *pOutput, const BYTE *pInput, size_t nSizeBytes) override |
Static Public Attributes | |
static const size_t | k_LEN_HEAD = 12 |
in bytes More... | |
Encrypt/Decrypt a file entry in the zip. ASSUME ZFLG_CRYPT and adds k_LEN_HEAD to the entry. Each file/entry in the ZIP can have a separate crypt and password.
GrayLib::cZipCrypt::cZipCrypt | ( | ) |
GrayLib::cZipCrypt::~cZipCrypt | ( | ) |
|
inlineoverridevirtual |
|
inline |
|
inline |
|
inlineoverridevirtual |
bool GrayLib::cZipCrypt::InitDecrypt | ( | const char * | pszPass, |
BYTE * | pBuffer | ||
) |
void GrayLib::cZipCrypt::InitEncrypt | ( | const char * | pszPass, |
BYTE * | pBuffer, | ||
UINT32 | dwCRCForCrypting | ||
) |
|
static |
in bytes