Galois/Counter Mode
A mode of using a block cipher such as AES that both encrypts data and produces an authentication tag to detect any tampering.
In more detail
It is the usual choice for new designs, including TLS 1.3. It needs a unique initialization vector, normally 12 bytes, for every message encrypted with the same key.
Related terms
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
- authenticated encryption — Encryption that also proves the data has not been changed, by producing an authentication tag checked during decryption.
- authentication tag — A short value, 16 bytes for AES-GCM, produced with the ciphertext that lets the receiver check nothing was changed.
- initialization vector — A random or unique value fed into encryption with the key, so the same plaintext encrypts differently each time.
Taught in
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services