#include <ZipCrc32Cryptograph.h>
Performs the traditional zip encryption.
- See Also
- Encryption Methods: How to Best Protect Your Data
bool CZipCrc32Cryptograph::CanHandle |
( |
int |
iEncryptionMethod | ) |
|
|
inlinevirtual |
Returns the value indicating whether the current compressor can handle the given encryption method.
- Parameters
-
iEncryptionMethod | The encryption method to test. It can be one of the EncryptionMethod values. |
- Returns
true
, if the current compressor can handle the given encryption method; false
otherwise.
Reimplemented from CZipCryptograph.
void CZipCrc32Cryptograph::Decode |
( |
char * |
pBuffer, |
|
|
DWORD |
uSize |
|
) |
| |
|
inlinevirtual |
Decodes the given data.
- Parameters
-
pBuffer | The buffer that holds the data to decode and that receives the results. |
uSize | The size of pBuffer. |
Implements CZipCryptograph.
void CZipCrc32Cryptograph::Encode |
( |
char * |
pBuffer, |
|
|
DWORD |
uSize |
|
) |
| |
|
inlinevirtual |
Encodes the given data.
- Parameters
-
pBuffer | The buffer that holds the data to encode and that receives the results. |
uSize | The size of pBuffer. |
Implements CZipCryptograph.
static const z_crc_t* CZipCrc32Cryptograph::GetCRCTable |
( |
| ) |
|
|
inlinestatic |
static DWORD CZipCrc32Cryptograph::GetEncryptedInfoSizeAfterData |
( |
| ) |
|
|
inlinestatic |
static DWORD CZipCrc32Cryptograph::GetEncryptedInfoSizeBeforeData |
( |
| ) |
|
|
inlinestatic |
bool CZipCrc32Cryptograph::InitDecode |
( |
CZipAutoBuffer & |
password, |
|
|
CZipFileHeader & |
currentFile, |
|
|
CZipStorage & |
storage, |
|
|
bool |
ignoreCheck |
|
) |
| |
|
virtual |
The method called when an existing file is opened for extraction.
- Parameters
-
password | The supplied password with the CZipArchive::SetPassword method. |
currentFile | The file being decoded and extracted. |
storage | The current CZipStorage. |
ignoreCheck | If true , skips control bytes verifications. |
- Returns
true
, if the password is initially considered correct; false
otherwise.
Implements CZipCryptograph.
The method called when a new file is opened for compression.
- Parameters
-
Implements CZipCryptograph.
The documentation for this class was generated from the following file: