#include <ZipCrc32Cryptograph.h>
Public Member Functions | |
bool | CanHandle (int iEncryptionMethod) |
void | Decode (char *pBuffer, DWORD uSize) |
void | Encode (char *pBuffer, DWORD uSize) |
bool | InitDecode (CZipAutoBuffer &password, CZipFileHeader ¤tFile, CZipStorage &storage) |
void | InitEncode (CZipAutoBuffer &password, CZipFileHeader ¤tFile, CZipStorage &storage) |
Static Public Member Functions | |
static const unsigned long * | GetCRCTable () |
static DWORD | GetEncryptedInfoSizeAfterData () |
static DWORD | GetEncryptedInfoSizeBeforeData () |
Definition at line 43 of file ZipCrc32Cryptograph.h.
bool CZipCrc32Cryptograph::CanHandle | ( | int | iEncryptionMethod | ) | [inline, virtual] |
Returns the value indicating whether the current compressor can handle the given encryption method.
iEncryptionMethod | The encryption method to test. It can be one of the EncryptionMethod values. |
true
, if the current compressor can handle the given encryption method; false
otherwise. Reimplemented from CZipCryptograph.
Definition at line 61 of file ZipCrc32Cryptograph.h.
void CZipCrc32Cryptograph::Decode | ( | char * | pBuffer, | |
DWORD | uSize | |||
) | [inline, virtual] |
Decodes the given data.
pBuffer | The buffer that holds the data to decode and that receives the results. | |
uSize | The size of pBuffer. |
Implements CZipCryptograph.
Definition at line 50 of file ZipCrc32Cryptograph.h.
void CZipCrc32Cryptograph::Encode | ( | char * | pBuffer, | |
DWORD | uSize | |||
) | [inline, virtual] |
Encodes the given data.
pBuffer | The buffer that holds the data to encode and that receives the results. | |
uSize | The size of pBuffer. |
Implements CZipCryptograph.
Definition at line 55 of file ZipCrc32Cryptograph.h.
static const unsigned long* CZipCrc32Cryptograph::GetCRCTable | ( | ) | [inline, static] |
Returns the CRC table.
Definition at line 85 of file ZipCrc32Cryptograph.h.
static DWORD CZipCrc32Cryptograph::GetEncryptedInfoSizeAfterData | ( | ) | [inline, static] |
See CZipCryptograph::GetEncryptedInfoSizeAfterData
Definition at line 77 of file ZipCrc32Cryptograph.h.
static DWORD CZipCrc32Cryptograph::GetEncryptedInfoSizeBeforeData | ( | ) | [inline, static] |
See CZipCryptograph::GetEncryptedInfoSizeBeforeData
Definition at line 69 of file ZipCrc32Cryptograph.h.
bool CZipCrc32Cryptograph::InitDecode | ( | CZipAutoBuffer & | password, | |
CZipFileHeader & | currentFile, | |||
CZipStorage & | storage | |||
) | [virtual] |
The method called when an existing file is opened for extraction.
password | The supplied password with the CZipArchive::SetPassword method. | |
currentFile | The file being decoded and extracted. | |
storage | The current CZipStorage. |
true
, if the password is initially considered correct; false
otherwise. Implements CZipCryptograph.
void CZipCrc32Cryptograph::InitEncode | ( | CZipAutoBuffer & | password, | |
CZipFileHeader & | currentFile, | |||
CZipStorage & | storage | |||
) | [virtual] |
The method called when a new file is opened for compression.
password | The supplied password with the CZipArchive::SetPassword method. | |
currentFile | The file being compressed and encoded. | |
storage | The current CZipStorage. |
Implements CZipCryptograph.