liveBook · Manning

Galois/Counter Mode

Also called gcm

Galois/Counter Mode is an authenticated-encryption mode that combines counter-mode encryption with authentication of ciphertext and associated data.

How 2 Manning books explain it

Software Security for Developers

AES-GCM is an authenticated-encryption mode of AES that provides confidentiality and message integrity with associated data support.

How it is used
Protects application data and messages with confidentiality, integrity, authenticity, and optional authenticated associated data.
How deep it goes
Explains inputs, outputs, failure modes, Java configuration, AEAD, and safeguards, but defers GCM’s mathematical details.
Examples
Demonstrates Java Cipher code, Tink, associated-data messages, encrypted refunds files, and Nimbus JWE objects.
What you can do after
Build it from scratch or apply it through Java, Tink, or Nimbus while avoiding nonce reuse and authentication failures.

Read how Software Security for Developers explains Galois/Counter Mode →

Real-World Cryptography

An authenticated-encryption construction that combines AES in Galois/Counter Mode with authentication of ciphertext and associated data.

How it is used
Protects communications by combining confidentiality with authentication of ciphertext and associated data.
How deep it goes
Explains CTR, GMAC, nonce requirements, and practical Web Crypto use, but stops short of implementation-level details.
Examples
Uses Alice-and-Bob message flow, AES-GCM JavaScript, a random 12-byte IV, associated data, and altered-message rejection.
What you can do after
Apply it via the Web Crypto API to encrypt and decrypt messages while avoiding nonce reuse.

Read how Real-World Cryptography explains Galois/Counter Mode →

What to know first

Related concepts

Questions about Galois/Counter Mode

What is Galois/Counter Mode?

Galois/Counter Mode is an authenticated-encryption mode that combines counter-mode encryption with authentication of ciphertext and associated data.

Which Manning books explain Galois/Counter Mode?

Software Security for Developers and Real-World Cryptography.

What should I know before learning Galois/Counter Mode?

Manning books that teach Galois/Counter Mode usually introduce ciphertext, message authentication code and plaintext first.

What is the difference between Galois/Counter Mode and cipher block chaining mode?

Galois/Counter Mode is an authenticated-encryption mode that combines counter-mode encryption with authentication of ciphertext and associated data. Cipher block chaining is a block-cipher mode that XORs each plaintext block with the preceding ciphertext block before encryption, using an initialization vector for the first block.

What is Galois/Counter Mode a kind of?

Galois/Counter Mode is a kind of authenticated encryption with associated data. Authenticated encryption with associated data is a cryptographic construction that encrypts plaintext while authenticating the ciphertext and optional unencrypted associated data.

What is Galois/Counter Mode also called?

Galois/Counter Mode is also called gcm.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.