A Note on the Influence of a Zero Length Nonce on GCM and GMAC

arXiv:2608.06061 · cs.CR · Submitted 2026-08-06 · Read on arXiv

Yaobin Shen

cs.CR

Submitted: 2026-08-06

License: http://creativecommons.org/licenses/by/4.0/

The gist: In this note, we show a simple attack that can recover the hash key of GCM and GMAC by using a zero length nonce.

Terminology

Abstract

In this note, we show a simple attack that can recover the hash key of GCM and GMAC by using a zero length nonce. After recovering the hash key, the adversary can forge an arbitrary ciphertext or message as she wants. We note that the ISO/IEC version of GCM and GMAC allows the nonce to be a zero length string, while the NIST version of GCM and GMAC explicitly requires the nonce to be at least one bit. Hence, our attack works for the ISO/IEC version and cannot work for the NIST version.

Related papers