concept AES - GCM in category cryptography

appears as: AES-GCM
Real-World Cryptography

This is an excerpt from Manning's book Real-World Cryptography.

Figure 4.26. AES-GCM works by using AES-CTR with a symmetric key K to encrypt the plaintext, and using GMAC to authenticate the associated data and the ciphertext using an authentication key H.
aesgcm

As I’ve said previously, the 12-byte nonce of AES-GCM needs to be unique, and thus to never repeat. Notice that it doesn’t need to be random, consequently some people like to use it as a counter, starting it at 1 and incrementing it for each encryption. In this case, one must use a cryptographic library that lets the user to choose the nonce. This allows one to encrypt 212*8-1 messages before reaching the maximum value of the nonce. Suffice to say, this is an impossible number of messages to reach in practice.

Figure 4.27. AES-GCM is a nonce-based AEAD. It provides the same interface as an AEAD but requires a nonce in order to work. The nonce must never repeat between encryptions.
aesgcm api