LOGBOOK

HELP

Quiz Entry - updated: 2026.03.05

How large is the permutation space for a block cipher with block size n, and why does this matter?

For block size n, there are (2^n)! possible permutations — an astronomically large number that makes brute-force search of all permutations impossible.

For AES (n=128):

  • Number of possible permutations: (2^128)! ≈ 10^(10^39)
  • Number of permutations the key can select: 2^128 ≈ 3.4 × 10^38

The key space is vanishingly small compared to the total permutation space. A good block cipher should make its 2^k selected permutations "look random" — indistinguishable from a randomly chosen permutation.

Security implication: An attacker who doesn't know the key cannot determine which of the (2^n)! permutations is being used. The cipher's security relies on the selected permutations appearing random to anyone without the key.

From Quiz: KRYPTOG / Symmetric Cryptography | Updated: Mar 05, 2026