Mode of Operation
Definition
A defined way to use a block cipher for a security task. Padding, IVs and authentication depend on the chosen mode.
- Governs
- Handling of arbitrary-length data by a block cipher
- Weak example
- ECB, no integrity, pattern leakage
- Strong example
- GCM, authenticated encryption
- Also defines
- IV or nonce usage
Common questions
Why is ECB mode considered forensically weak even with a strong cipher like AES?+
ECB encrypts identical plaintext blocks to identical ciphertext blocks, so repeating patterns in the plaintext, such as image regions, remain visible in the ciphertext, which is why examiners can sometimes recognise structure without decryption.
What does an authenticated mode like GCM add that a plain confidentiality-only mode does not?+
GCM combines encryption with a message authentication tag, so any tampering with the ciphertext is detectable, which matters when an examiner needs to establish that seized encrypted evidence has not been altered.
Related terms
- AEAD
- Authenticated encryption with associated data. It protects confidentiality and integrity under its assumptions and can authenticate unencrypted context.
- AES-NI
- An x86 instruction-set extension for AES operations. Acceleration can avoid classic table-lookup leakage without proving the whole application immune to side channels.
- Block Cipher
- A keyed permutation of fixed-size blocks; AES uses 128-bit blocks and DES/Blowfish use 64-bit blocks. A construction handles larger data.
- Constant-Time Crypto
- Implementation techniques that avoid secret-dependent timing and memory-access patterns under a specified model. They do not automatically eliminate physical power or electromagnetic...
- Stream Cipher
- A construction generating keystream for combination with plaintext. Key/nonce/counter rules are essential; encryption alone need not authenticate.