login about faq

Bug or feature?

According to the CkZipEntry docs, the ::get_Crc() method should return 0 for AES encrypted entries. AES zip entries produced using CkZip itself, does NOT have this property however:

    CkZip zip;
    zip.UnlockComponent("something");
    zip.NewZip("stuff.zip");
    zip.put_EncryptPassword("secret");
    zip.put_Encryption(4);
    zip.AppendFiles("somefile.dat", false);
    zip.WriteZipAndClose();
    // read the encrypted file
    zip.OpenZip("stuff.zip");
    assert (zip.get_Encryption() == 4); // ok, file is aes encrypted!
    CkZipEntry *aesEntry = zip.GetEntryByIndex(0); // the one and only entry
    if (aesEntry) {
       assert (aesEntry->get_Crc() == 0) // assertion failed!
       delete aesEntry;
     }

Either the documentation should be changed or (better yet) the CkZip AES encryption code should be fixed to set the CRC32 to zero.

/Sune

asked Apr 28 '14 at 06:10

sune's gravatar image

sune
1234

Thanks! I'll have a look..

(Apr 29 '14 at 10:47) chilkat ♦♦

This is fixed now in v9.5.0.38.

See http://www.cknotes.com/v9-5-0-38-micro-update-trustedroots-objectclass-added-and-other-various-fixes/

Please tell me the exact build you require..

link

answered May 06 '14 at 10:51

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

This is good news!

I use the Visual Studio 2012 builds (both 32+64 bit) with xp toolset,

thanks!

/Sune

(May 06 '14 at 11:31) sune
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33
×20
×6
×1

Asked: Apr 28 '14 at 06:10

Seen: 5,359 times

Last updated: May 06 '14 at 11:31

powered by OSQA