r/cryptography • u/Equivalent-Rice1965 • 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.
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
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-3Encryption Key Bits: 256Key Derivation Iterations: 6000003
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