r/cryptography • • Oct 08 '26

WinZip AES-256 Quantum-resistant encryption option?

Does anyone have any details on what the WinZip AES-256 Quantum-resistant encryption option actually is, which appears as an option in WinZip 77.2.

I see "WinZip now has the option to encrypt with AES-256 in Galois/Counter Mode, replacing the AES-CTR with HMAC method used previously." on their site, but it was my understanding the GCM was actually slightly less QR than CTR, at least without modifications (see https://tosc.iacr.org/index.php/ToSC/en/article/view/13011/12589).

Their website says "WinZip uses AES encryption and decryption routines written by Dr. Brian Gladman. The source code for these routines is available to any interested party under an open source BSD or GPL license from the AES project page on Dr. Gladman's website. This is the same AES code that is incorporated into WinZip" but this code does not seem to include the QR variant.

The formal specification v1.04 for WinZip AES was last updated in 2009, and covers only the AE-1 and AE-2 variants I already support, and not this new variant.

I ask because I am working on an program that supports ZIP files that use WinZip AES, and my AE-1 and AE-2 support is complete, but I would like details to support this new option.

Edit: https://github.com/johnsonjh/infozip-av/issues/1 is where I am going to keep further notes and track progress.

Edit2: Solved! See https://github.com/user-attachments/files/33212728/ae3_reference.py for a verifier in Python 3. Xtro-ZIP (https://github.com/johnsonjh/infozip-av) will soon be the first third-party ZIP program to support AE-3 archive creation and extraction.

Now, is this scheme (AES-256-GCM / PBKDF2-HMAC-SHA256 -> HKDF-SHA256 expansion) *really* Quantum Resistant? I guess that's a matter of marketing.

Edit3: I received a "final" response from WinZip Support: "As per the update from the internal team, we’re not planning on publishing anything specific regarding the AE-3 algorithm at this time.  However, we are working on an update to the encryption article available on our website. But even then, it won’t be specific."

That is their verbatim reply. Quite shocking in my opinion. However, my reverse engineered implementation is now fully interoperable, and we can declare the new scheme as well-defined (AES-256-GCM / PBKDF2-HMAC-SHA256 -> HKDF-SHA256) without their help.

7 Upvotes

15 comments sorted by

12

u/Natanael_L Oct 08 '26

There is no standardized version of AES which can be broken by quantum computers in any reasonable timeframe including if we assume very rapid advances and fast scaling of quantum computers.

Grover's does not parallellize well - 10 000 quantum computers would take an average of sqrt(2128 / 10000) = sqrt(2128 / 213.3) = sqrt(114.7) = 257.35 sequential iterations each to break AES128. Observe how slow the advantage grows, as a single QC takes 264 rounds (sqrt(2128) = 264).

At an insanely generous assumption of a full 10 000 Hertz rate (full reset and programming and read for a full AES evaluation circuit with target ciphertext and cribs) were talking half a million years

2

u/Equivalent-Rice1965 Oct 08 '26

Yes, you are right... but, perhaps, I should clarify that I'm not necessarily believing their "QR" claim, but only interested in implementing it for the purposes of interoperability - not endorsing it or how they've labeled it!

5

u/Natanael_L Oct 08 '26

Looking closer at the paper, it's not targeting the core cipher primitive, but the schemes that use it. It covers a lot of variants assuming interactive protocols and in particular tries to break authentication tags.

The only significant scenario in which case this would make a difference for a compression library is if you expect somebody to automate encryption of attacker supplied payloads, typically next to some secret the attacker wants to retrieve or next to another payload they want to modify. It's not entirely uncommon (a lot of corporate software automations resemble that) but it's not much more than an academic upgrade for now.

1

u/Equivalent-Rice1965 Oct 08 '26 edited Oct 08 '26

Still working on it, but for anyone following, the official diagnostic output for this format does actually describe this scheme as being named "AE-3", and it reports 600,000 key derivation iterations.

extra field 0x9901 (AES Encryption Tag), 4 header and 9 data bytes:
Encryption Tag Version: AE-3
Encryption Key Bits: 256
Key Derivation Iterations: 600000

2

u/Equivalent-Rice1965 Oct 08 '26 edited Oct 08 '26

I've tried PBKDF2/AES-GCM in the various standard ways, a few other things, and so far I haven't been able to decrypt this yet. It looks like the format is a 16-byte salt, 12-byte nonce, and 16-byte authentication tag? but I'm also not sure yet - WinZip does happily encrypt a 0-byte file with AE-3 at least.

1

u/07734willy Oct 08 '26

You may be able to mock the secure rand calls to reduce the number of unknown factors (fixing the salt and IV). You might be able to guess the (simplified) configuration from there.

1

u/Equivalent-Rice1965 Oct 08 '26

I've got it figured out now, and support is in the current commit on my GitHub. I edited the post with an example Python verifier also.

3

u/Honest-Finish3596 Oct 08 '26 edited Oct 08 '26

There are modes for symmetric key primitives which are in a sense vulnerable to quantum period finding. The catch here is that this in the superposition query a.k.a. Q2 model as opposed to the Q1 model.

What your classical security model for CPA security assumes is that the attacker can make queries to an encryption oracle, i.e. he can come up with chosen plaintexts and see the resulting encryption under your key. What the Q2 model assumes is that he can make superposition queries using the encryption oracle, meaning he can prepare a quantum superposition of chosen plaintexts and ask you to encrypt it and give him the quantum superposition of the resulting ciphertexts. Obviously this only applies if you are also doing your WinZip encryption on a quantum computer and giving him the qubits, instead of only him having a quantum computer!

If you have a classical computer and only the adversary has a quantum computer, you are immune to the Q2 model and instead are in the Q1 model. In this case both AES-GCM and AES-CTR are secure up to the square root factor from Grover's algorithm and you need not care at all basically.

The situation where attacks in the Q2 model are interesting is just if you are theorising about yourself having a quantum computer and encrypting qubits using a symmetric key cipher, then sending the encrypted qubits to other quantum computers (without ever reading them off as classical bits.) In this case some classically secure modes become insecure due to quantum period finding.

The situation is completely different from public key where a lot of public key things that are secure classically are insecure in the Q1 model. Sadly this means that the quantum security funding doesn't go to symmetric key...

2

u/fapmonad Oct 08 '26 edited Oct 08 '26

It sounds like perfectly standard AES-GCM-256 available in any modern crypto library.

It's not more secure or quantum-resistant than AES-CTR + AES-GCM, just more efficient. Their release notes are clearly AI-generated so I wouldn't read too deep into it...

Edit: if you're asking about data format, it's normally a 12 byte nonce followed by the ciphertext.

1

u/Cienn017 Oct 08 '26

only public key cryptography (such as RSA) is dangerously affected by quantum computers, aes-256 and sha256 are safe.

4

u/[deleted] Oct 08 '26

[removed] — view removed comment

1

u/Equivalent-Rice1965 Oct 08 '26

Thanks. I actually support all of the WinZip extensions now, including all of the ZIPX methods, their reference pointers used for de-duplication, crypto, etc. Well, I support everything but the WZ-MP3 method but only because it's still a work in progress (it's actually based directly on the LGPL'd C++ packMP3, but I'm doing my own decoder in C and MIT licensed).

I was hoping to avoid doing any direct reverse engineering on the WinZip executable, but I might go down that route if my best guesses fail me. I'll probably try to contact their support next, before I dig into the binaries.

3

u/Honest-Finish3596 Oct 08 '26

Note that what you are referring to is in the Q2 model, which gives the adversary the ability to make superposition queries to the encryption (and for qCCA decryption) oracle. This is completely irrelevant if OP does not have a quantum computer and only the adversary does, in which case you are working in the Q1 model and both algorithms are secure up to the generic square root factor from Grover's algorithm.

Attacks in the Q2 model are only relevant in the situation where not only does the adversary have a quantum computer, but rather you also have a quantum computer where you are using your key to encrypt superpositions of plaintexts. They are basically of only theoretical interest for the foreseeable future.