CZipCrc32Cryptograph Class Reference

#include <ZipCrc32Cryptograph.h>

Inheritance diagram for CZipCrc32Cryptograph:

Inheritance graph
[legend]

List of all members.

Public Member Functions

bool CanHandle (int iEncryptionMethod)
void Decode (char *pBuffer, DWORD uSize)
void Encode (char *pBuffer, DWORD uSize)
bool InitDecode (CZipAutoBuffer &password, CZipFileHeader &currentFile, CZipStorage &storage)
void InitEncode (CZipAutoBuffer &password, CZipFileHeader &currentFile, CZipStorage &storage)

Static Public Member Functions

static const unsigned long * GetCRCTable ()
static DWORD GetEncryptedInfoSizeAfterData ()
static DWORD GetEncryptedInfoSizeBeforeData ()


Detailed Description

Performs the traditional zip encryption.

See also:
Encryption Methods: How to Best Protect Your Data

Definition at line 43 of file ZipCrc32Cryptograph.h.


Member Function Documentation

bool CZipCrc32Cryptograph::CanHandle ( int  iEncryptionMethod  )  [inline, virtual]

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.

Definition at line 61 of file ZipCrc32Cryptograph.h.

void CZipCrc32Cryptograph::Decode ( char *  pBuffer,
DWORD  uSize 
) [inline, virtual]

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.

Definition at line 50 of file ZipCrc32Cryptograph.h.

void CZipCrc32Cryptograph::Encode ( char *  pBuffer,
DWORD  uSize 
) [inline, virtual]

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.

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]

static DWORD CZipCrc32Cryptograph::GetEncryptedInfoSizeBeforeData (  )  [inline, static]

bool CZipCrc32Cryptograph::InitDecode ( CZipAutoBuffer &  password,
CZipFileHeader currentFile,
CZipStorage storage 
) [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.
Returns:
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.

Parameters:
password The supplied password with the CZipArchive::SetPassword method.
currentFile The file being compressed and encoded.
storage The current CZipStorage.

Implements CZipCryptograph.


The documentation for this class was generated from the following file:

The ZipArchive Library Copyright © 2000 - 2009 Artpol Software - Tadeusz Dracz. Generated at Fri Apr 24 16:46:35 2009.