#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, bool ignoreCheck) |
| void | InitEncode (CZipAutoBuffer &password, CZipFileHeader ¤tFile, CZipStorage &storage) |
Public Member Functions inherited from CZipCryptograph | |
| virtual void | FinishDecode (CZipFileHeader ¤tFile, CZipStorage &storage) |
| virtual void | FinishEncode (CZipFileHeader ¤tFile, CZipStorage &storage) |
Static Public Member Functions | |
| static const z_crc_t * | GetCRCTable () |
| static DWORD | GetEncryptedInfoSizeAfterData () |
| static DWORD | GetEncryptedInfoSizeBeforeData () |
Static Public Member Functions inherited from CZipCryptograph | |
| static CZipCryptograph * | CreateCryptograph (int iEncryptionMethod) |
| static DWORD | GetEncryptedInfoSize (int iEncryptionMethod) |
| static DWORD | GetEncryptedInfoSizeAfterData (int iEncryptionMethod) |
| static DWORD | GetEncryptedInfoSizeBeforeData (int iEncryptionMethod) |
| static bool | IsEncryptionSupported (int iEncryptionMethod) |
| static bool | IsWinZipAesEncryption (int iEncryptionMethod) |
Additional Inherited Members | |
Public Types inherited from CZipCryptograph | |
| enum | EncryptionMethod { encStandard, encWinZipAes128, encWinZipAes192, encWinZipAes256, encNone = 0xFF } |
Performs the traditional zip encryption.
Definition at line 43 of file ZipCrc32Cryptograph.h.
|
inlinevirtual |
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 64 of file ZipCrc32Cryptograph.h.
|
inlinevirtual |
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 53 of file ZipCrc32Cryptograph.h.
|
inlinevirtual |
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 58 of file ZipCrc32Cryptograph.h.
|
inlinestatic |
Returns the CRC table.
Definition at line 88 of file ZipCrc32Cryptograph.h.
|
inlinestatic |
See CZipCryptograph::GetEncryptedInfoSizeAfterData
Definition at line 80 of file ZipCrc32Cryptograph.h.
|
inlinestatic |
See CZipCryptograph::GetEncryptedInfoSizeBeforeData
Definition at line 72 of file ZipCrc32Cryptograph.h.
|
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. |
| ignoreCheck | If true, skips control bytes verifications. |
true, if the password is initially considered correct; false otherwise. Implements CZipCryptograph.
|
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.