Galois/Counter Mode (GCM)

A block cipher mode that combines counter mode encryption with a Galois field authentication tag, providing confidentiality and integrity together as authenticated encryption (NIST SP 800-38D).

Galois/Counter Mode is a block cipher mode of operation specified in NIST SP 800-38D, which NIST announced in 2024 that it would revise. GCM encrypts using counter mode: encrypted counter blocks derived from the initialisation vector are XORed with the plaintext, allowing parallel processing. It then computes an authentication tag over the ciphertext and any additional authenticated data using GHASH, a multiplication in the Galois field GF(2^128). The result is authenticated encryption with associated data: an altered message fails the tag check. GMAC is the authentication-only variant. AES-GCM is one of the cipher suites defined for TLS 1.3 and is widely used in IPsec.

The critical weakness is reuse of the initialisation vector. Reusing one under the same key exposes the XOR of the two plaintexts and can let an attacker recover the authentication subkey and forge tags. GCM therefore depends on a unique IV for every encryption under a key, commonly a 96-bit value, and SP 800-38D limits how much one key may be used. Unlike cipher block chaining, which needs a separate MAC for integrity, GCM provides both in one mode.

Exam relevance: a scenario asking for a mode that provides confidentiality and integrity together is likely to point to GCM. Candidates are expected to recall that IV or nonce reuse is the failure that breaks it.