21 #if !defined(ZIPARCHIVE_ZIPCRYPTOGRAPH_DOT_H)
22 #define ZIPARCHIVE_ZIPCRYPTOGRAPH_DOT_H
26 #pragma warning( push )
27 #pragma warning (disable : 4100) // unreferenced formal parameter
28 #endif // _MSC_VER > 1000
30 #include "ZipAutoBuffer.h"
81 static bool IsWinZipAesEncryption(
int iEncryptionMethod)
83 return iEncryptionMethod == encWinZipAes128 || iEncryptionMethod == encWinZipAes192 || iEncryptionMethod == encWinZipAes256;
96 static DWORD GetEncryptedInfoSize(
int iEncryptionMethod);
108 static DWORD GetEncryptedInfoSizeBeforeData(
int iEncryptionMethod);
120 static DWORD GetEncryptedInfoSizeAfterData(
int iEncryptionMethod);
131 static bool IsEncryptionSupported(
int iEncryptionMethod)
133 return iEncryptionMethod == encStandard;
154 virtual bool InitDecode(CZipAutoBuffer& password,
CZipFileHeader& currentFile,
CZipStorage& storage,
bool ignoreCheck) = 0;
179 virtual void Decode(
char* pBuffer, DWORD uSize) = 0;
190 virtual void Encode(
char* pBuffer, DWORD uSize) = 0;
223 virtual bool CanHandle(
int iEncryptionMethod)
231 #pragma warning( pop )
232 #endif // _MSC_VER > 1000