liveBook · Manning

Mode of operation

A block cipher mode of operation is a method for applying a block cipher to messages consisting of one or more blocks.

How 2 Manning books explain it

Software Security for Developers

A mode of operation defines how a block cipher processes messages longer than a single block and may provide additional security properties.

How it is used
Explains how AES handles messages longer than one block and guides developers toward secure encryption modes.
How deep it goes
Defines block processing, demonstrates ECB leakage, explains CBC chaining and IVs, and recommends GCM without mathematical proofs.
Examples
Uses a 1,605-byte message, repeated HTTP responses, ECB block diagrams, CBC chaining, and AES-GCM authentication tags.
What you can do after
Configure AES encryption with a nonreused random IV and choose GCM when confidentiality, integrity, and authenticity are required.

Read how Software Security for Developers explains mode of operation →

Real-World Cryptography

A mode of operation is a method for applying a block cipher repeatedly to data blocks to encrypt messages of varying length.

How it is used
Explains how to encrypt messages longer than one block while exposing why naive independent encryption leaks patterns.
How deep it goes
Defines padding, ECB, and CBC with short operational explanations, but stops short of detailed mode internals.
Examples
Uses a 16-byte AES block, an eight-byte padding illustration, and the recognizable ECB penguin image.
What you can do after
Evaluate how padding and mode selection affect long-message encryption and recognize ECB pattern leakage.

Read how Real-World Cryptography explains mode of operation →

Also covered in

What to know first

Related concepts

Questions about mode of operation

What is mode of operation?

A block cipher mode of operation is a method for applying a block cipher to messages consisting of one or more blocks.

Which Manning books explain mode of operation?

Software Security for Developers and Real-World Cryptography.

What should I know before learning mode of operation?

Manning books that teach mode of operation usually introduce ciphertext and plaintext first.

What kinds of mode of operation are there?

Kinds of mode of operation include cipher block chaining mode, electronic codebook mode and Galois/Counter Mode.

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.