From 02d6107c97b48888362e7c6a70dcac323c89d741 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 17 Dec 2023 21:23:58 +0100 Subject: ZipArchive: Update to the 4.6.9 release --- zip/ZipArchive/ZipCryptograph.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'zip/ZipArchive/ZipCryptograph.h') diff --git a/zip/ZipArchive/ZipCryptograph.h b/zip/ZipArchive/ZipCryptograph.h index 5c60cd4..8594a8a 100644 --- a/zip/ZipArchive/ZipCryptograph.h +++ b/zip/ZipArchive/ZipCryptograph.h @@ -1,6 +1,6 @@ //////////////////////////////////////////////////////////////////////////////// -// This source file is part of the ZipArchive library source distribution and -// is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz +// This source file is part of the ZipArchive Library Open Source distribution +// and is Copyrighted 2000 - 2022 by Artpol Software - Tadeusz Dracz // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -9,7 +9,7 @@ // // For the licensing details refer to the License.txt file. // -// Web Site: http://www.artpol-software.com +// Web Site: https://www.artpol-software.com //////////////////////////////////////////////////////////////////////////////// /** @@ -61,7 +61,7 @@ public: A factory method that creates an appropriate cryptograph for the given method. \param iEncryptionMethod - The encryption method to create a cryptograph for. Can be one of #EncryptionMethod values. + The encryption method to create a cryptograph for. It can be one of the #EncryptionMethod values. \return The new cryptograph. The caller is responsible for destroying the object. @@ -70,10 +70,10 @@ public: static CZipCryptograph* CreateCryptograph(int iEncryptionMethod); /** - Determines if the given method is one of the WinZip AES encryption method. + Returns the value indicating whether the given method is one of the WinZip AES encryption methods. \param iEncryptionMethod - The encryption method to test. Can be one of #EncryptionMethod values. + The encryption method to test. It can be one of the #EncryptionMethod values. \return \c true, if the method is one the WinZip AES encryption methods; \c false otherwise. @@ -87,7 +87,7 @@ public: Returns the total size of the extra data that is added to the compression stream during encryption with the given method. \param iEncryptionMethod - The encryption method. Can be one of #EncryptionMethod values. + The encryption method. It can be one of the #EncryptionMethod values. \return The total size of extra data for the given encryption method. @@ -99,7 +99,7 @@ public: Returns the size of the extra data that is added before the compression stream during encryption with the given method. \param iEncryptionMethod - The encryption method. Can be one of #EncryptionMethod values. + The encryption method. It can be one of the #EncryptionMethod values. \return The size of extra data at the beginning of the compression stream for the given encryption method. @@ -111,7 +111,7 @@ public: Returns the size of the extra data that is added after the compression stream during encryption with the given method. \param iEncryptionMethod - The encryption method. Can be one of #EncryptionMethod values. + The encryption method. It can be one of the #EncryptionMethod values. \return The size of extra data at the end of the compression stream for the given encryption method. @@ -120,10 +120,10 @@ public: static DWORD GetEncryptedInfoSizeAfterData(int iEncryptionMethod); /** - Determines if the given encryption method is supported by the current compilation of the ZipArchive Library. + Returns the value indicating whether the given encryption method is supported by the current compilation of the ZipArchive Library. \param iEncryptionMethod - The encryption method to test. Can be one of #EncryptionMethod values. + The encryption method to test. It can be one of the #EncryptionMethod values. \return \c true, if the method is supported; \c false otherwise. @@ -144,11 +144,14 @@ public: \param storage The current CZipStorage. + + \param ignoreCheck + If \c true, skips control bytes verifications. \return \c true, if the password is initially considered correct; \c false otherwise. */ - virtual bool InitDecode(CZipAutoBuffer& password, CZipFileHeader& currentFile, CZipStorage& storage) = 0; + virtual bool InitDecode(CZipAutoBuffer& password, CZipFileHeader& currentFile, CZipStorage& storage, bool ignoreCheck) = 0; /** The method called when a new file is opened for compression. @@ -212,7 +215,7 @@ public: Returns the value indicating whether the current compressor can handle the given encryption method. \param iEncryptionMethod - The encryption method to test. Can be one of #EncryptionMethod values. + The encryption method to test. It can be one of the #EncryptionMethod values. \return \c true, if the current compressor can handle the given encryption method; \c false otherwise. -- cgit v1.2.3