8000 Can't unzip Brian Gladman AES protected file with Apple CommonCrypto · Issue #397 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

Can't unzip Brian Gladman AES protected file with Apple CommonCrypto #397

Closed

Description

@Coeur

This is a follow up of ZipArchive/ZipArchive#516

  1. We create a BRG AES protected file (using ZipArchive based on minizip 1.2), with password "got":
    v1.zip

  2. We build minizip 2.8.7 with Apple Crypt:

$ cmake . -DMZ_BZIP2=OFF -DMZ_LZMA=OFF -DMZ_BUILD_TEST=ON
$ cmake --build .
  1. We attempt to unzip the file:
$ ./minizip -x -p got v1.zip 
Minizip 2.8.7 - https://github.com/nmoinvaz/minizip
---------------------------------------------------
-x -p *** v1.zip 
Archive v1.zip
Extracting 1.md
Error -3 saving entries to disk v1.zip
Error -105 closing archive for reading

The error is produced on the following line: https://github.com/nmoinvaz/minizip/blob/64c4c7f868467ca21434cced2a418f21d3c6c664/mz_strm_zlib.c#L181

Activity

  1. nmoinvaz commented on May 21, 2019

    @nmoinvaz
    Member

    That should fix it. Let me know if you have problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    encryptionEncryption/decryption issuefixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0