A Note on the Influence of a Zero Length Nonce on GCM and GMAC
This paper presents a simple attack that recovers the hash key of GCM and GMAC when a zero-length nonce is used, enabling arbitrary forgery, a vulnerability specific to the ISO/IEC standard that permits such nonces but not the NIST version which mandates a minimum length.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the digital world as a bustling city where every message sent is like a sealed letter. To keep these letters safe, we use special locks called encryption, and to make sure no one has tampered with them, we attach a unique wax seal called a "tag." One of the most popular ways to do this is a system called GCM (Galois/Counter Mode). Think of GCM as a high-tech post office that not only locks your letter but also stamps it with a mathematical fingerprint. This fingerprint is created using a secret "hash key," a special number known only to the sender and receiver. If the fingerprint matches when the letter arrives, everyone knows it's genuine. If the fingerprint is wrong, the letter is rejected. This system is used everywhere, from your Wi-Fi to secure banking, so keeping the secret hash key safe is crucial. If a bad actor steals that key, they could forge their own letters, tricking the post office into thinking they are real.
A recent note by researcher Yaobin Shen explores a very specific, somewhat unusual loophole in how this system is sometimes set up. The paper focuses on a tiny detail: the "nonce." In the world of GCM, the nonce is like a unique serial number or a one-time password that must be different for every single letter sent. It ensures that even if you send the same message twice, the lock and the seal look completely different. The paper investigates what happens if someone accidentally—or intentionally—uses a "zero-length" nonce, which is essentially an empty box with nothing inside it. While some official rulebooks for this system (specifically the ISO/IEC versions) allow for this empty box, others (like the NIST version) strictly forbid it, demanding at least a tiny bit of data. Shen's work shows that if you follow the rules that allow the empty box, a clever attacker can use that empty box to break the math behind the seal.
The paper demonstrates a clever trick where an attacker, by simply observing a message encrypted with this empty nonce, can solve a complex mathematical puzzle to recover the secret hash key. It's like if a thief noticed that when you locked a door with an empty keyhole, the lock clicked in a way that revealed the shape of the master key. Once the attacker has this key, they can forge any message they want. They can create fake letters with perfect seals that the system will accept as real. The author notes that this attack works specifically against the versions of the system that allow the empty nonce, but it fails completely against the versions that require a non-empty one. The paper doesn't just suggest this might happen; it provides a clear, step-by-step method showing exactly how the math breaks down in this specific scenario, proving that the "empty box" is a dangerous weakness in certain implementations.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.