Lably
Skip to content

Galois/Counter Mode

Authenticated encryption mode for block ciphers

  • 8 min read
  • 5 chapters

Related on Lably

Through Arithmetic, Polynomial and Wi-Fi

GCM uses a block cipher with a block size of 128 bits, (commonly AES-128) run in counter mode for encryption and uses arithmetic in the Galois field GF(2128) to compute the authentication tag, hence its name.

Galois Message Authentication Code (GMAC) is an authentication-only variant of GCM that can form an incremental message authentication code. Both GCM and GMAC can accept initialization vectors of arbitrary length.

Different block cipher modes of operation can have significantly different performance with the same block cipher. As a counter mode, GCM blocks are independent. This allows encryption and decryption to be parallelized, in contrast to modes like cipher block chaining (CBC) where each block relies on the previous one.

GCM was explicitly designed to be patent-free.

Basic operation

GCM operates as a counter mode block cipher to produce ciphertext.

For authentication, the ciphertext blocks are treated as coefficients of a polynomial evaluated at a key-dependent point H using finite field arithmetic. The result is then encrypted, producing an authentication tag that can be used to verify the integrity of the data, so that the encrypted text has the IV, ciphertext, and authentication tag.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Computing and communication