liveBook · Manning

Permutation

As explained in Real-World Cryptography

A permutation is a reversible one-to-one mapping of a set of elements onto itself.

A permutation rearranges a set so that every element maps to exactly one element, with no collisions. Because the mapping is one-to-one, it can always be reversed. section 2.5.2

In cryptography, permutations provide reversible transformations. SHA-3 uses the fixed Keccak-f permutation inside a sponge construction, while AES uses a key-selected permutation from plaintext blocks to ciphertext blocks. section 2.5.2 section 4.2.2

Track a permutation through these properties:

Shapes, bits, and encrypted blocks

Imagine arrows connecting four shapes on the left to the same four shapes on the right. Following an arrow transforms a shape; tracing the mapping backward recovers it. The same idea maps every possible 8-bit input to one 8-bit output, or every 128-bit AES plaintext to one 128-bit ciphertext.

How Real-World Cryptography covers it

How deep it goes
Defines one-to-one reversibility and connects it to SHA-3 and AES, but stops short of designing the underlying permutations.
Examples
Uses four shapes, all possible 8-bit strings, and 128-bit AES plaintext-ciphertext mappings.
What it assumes
Assumes only a set of elements and introduces reversibility through concrete mappings before applying cryptographic terminology.
What you can do after
Understand how reversible mappings support hashing and encryption constructions.
How it connects
Connects permutations to SHA-3, sponge construction, Keccak-f, AES, block ciphers, and pseudorandom permutations.

Also explained in

Compare how 9 books explain permutation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.