block cipher mode
The method for using a block cipher such as AES on data longer than one block, such as CBC or GCM.
In more detail
GCM also detects tampering; CBC does not, so it is usually paired with a separate integrity check. Both need a fresh initialization vector for every message.
Examples
openssl enc -aes-256-ctr -K $KEY -iv $IVThe enc command has no GCM mode, so CBC stands inRelated terms
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
- initialization vector — A random or unique value fed into encryption with the key, so the same plaintext encrypts differently each time.
- ECB mode — Electronic codebook mode: the simplest way to use a block cipher, which encrypts every block separately and so leaks patterns in the data.
- CTR mode — Counter mode: a way of using a block cipher that encrypts a running counter to make keystream, then combines that with the message using XOR.
- CBC mode — Cipher block chaining, a way of running a block cipher in which each block of plaintext is mixed with the previous block of ciphertext before it is encrypted.
- AES-GCM — AES in Galois/Counter Mode: the most widely used way to encrypt data so that it stays secret and any tampering is detected.
Taught in
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Envelope Encryption & Data Protection with KMS — Cloud Security & DevSecOps Engineering
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Data States: Security at Rest, in Transit, and in Use — Cybersecurity Fundamentals, GRC & Cryptography