UAM • Kryptografia kwantowa i postkwantowa • Reference deck

Quantum, Lattices, Codes & NIST Standards

Reference slides for Weeks 2–5 and Week 8

Bartosz Naskręcki — Spring 2026

Material reused verbatim from Elements of Cryptanalysis, Parts XIII–XV, Chapters 37–45
bnaskrecki.faculty.wmi.amu.edu.pl/crypto/

How to read this deck in our course

This is the upstream cryptanalysis-course reference. We use it as the spine for the weeks that reuse upstream chapters; weeks with new chapters (W1, W6, W7) have their own decks.

Slide rangeCourse weekHow to use
Part XIII (Slides 2–15)(already covered in half 1)Skim or skip. Recap if students forget Shor / Grover detail.
Part XIV: LatticesW2 – W4W2 = SVP/CVP/LLL; W3 = ML-KEM (NTT, parameter sets, FO); W4 = primal/dual attacks & signatures.
Part XV: Codes & StandardsW5 & W8W5 = ch 43 (McEliece, Goppa, ISD); W8 = ch 44 (FIPS 203/204/205) and ch 45 (synthesis).
For the new chapters in this course, open the dedicated decks: w1_pqc_landscape.html, w6_hash_based.html, w7_ntru_mv_isogeny.html.

Part XIII

The Quantum Threat

Chapters 37–39

Quantum Computing Basics Ch 37

Classical bits are 0 or 1. Qubits can exist in a superposition of both states simultaneously.

Definition — Qubit. A qubit is a unit vector in ℂ²:

|ψ⟩ = α|0⟩ + β|1⟩   where   |α|² + |β|² = 1

Measurement yields 0 with probability |α|² and 1 with probability |β|², collapsing the state.

On the Bloch sphere: |ψ⟩ = cos(θ/2)|0⟩ + esin(θ/2)|1⟩

Three pillars of quantum advantage:

  • Superposition — a qubit encodes both 0 and 1 simultaneously
  • Entanglement — correlations with no classical analogue; measuring one qubit instantly determines the other
  • Interference — amplitudes can add or cancel, amplifying correct answers
Key caveat: We cannot read out all values from a superposition. Measurement collapses the state to a single outcome. Quantum algorithm design is the art of using interference to boost the probability of the desired answer.
Chapter 37 — Quantum Computing Foundations

Quantum Gates and Circuits Ch 37

Quantum gates are unitary matrices (U†U = I), ensuring reversibility and norm preservation.

GateMatrixAction
Pauli-X[0 1; 1 0]Bit flip: |0⟩↔|1⟩
Pauli-Z[1 0; 0 -1]Phase flip: |1⟩→-|1⟩
Hadamard H(1/√2)[1 1; 1 -1]Creates equal superposition
CNOT4×4Flips target if control is |1⟩

Quantum parallelism: applying H⊗n to |0⟩⊗n yields an equal superposition over all 2n basis states:

H⊗n|0⟩⊗n = (1/√2n) Σx=02n-1 |x⟩

Applying a unitary Uf evaluates f on all inputs simultaneously. But the art lies in extracting the answer via interference and measurement.

Bell state (maximally entangled):
|Φ+⟩ = (|00⟩ + |11⟩)/√2
Created by H on qubit 0, then CNOT(0,1).

Chapter 37 — Quantum Computing Foundations

Shor's Algorithm: Factoring in Polynomial Time Ch 38

Peter Shor (1994) showed that a quantum computer can factor integers in O(n³ log n) operations, where n is the number of bits.

Core Reduction. Factoring N reduces to finding the period r of f(x) = ax mod N (the multiplicative order of a modulo N).

If r is even and ar/2 ¬≡ -1 (mod N), then gcd(ar/2 ± 1, N) gives nontrivial factors.

Success probability: For semiprimes N = pq, at least 1/2 per random choice of a. Typically 1–2 attempts suffice.

Quantum Fourier Transform (QFT):

QFT|j⟩ = (1/√N) Σk=0N-1 ωjk|k⟩

where ω = e2πi/N. Implemented with O(n²) gates on n qubits — exponentially faster than classical FFT on the full vector.

The QFT detects periodicity in superposition: peaks at multiples of Q/r reveal the period r. Continued fractions extract the exact value.

Chapter 38 — Shor's Algorithm

Shor's Impact: What Breaks? Ch 38

SystemHard ProblemQuantum AttackStatus
RSAInteger factoringShor: polynomial timeBroken
Diffie-HellmanDiscrete log in Zp*Shor: polynomial timeBroken
ECDH / ECDSAElliptic curve discrete logShor variant: polynomial timeBroken
AES-128Key search (2128)Grover: 264Weakened
AES-256Key search (2256)Grover: 2128Believed secure
SHA-256Preimage (2256)Grover: 2128Believed secure
Total break, not merely weakened. Shor's algorithm does not just reduce RSA's security margin — it eliminates it entirely. A 4096-bit RSA key, classically requiring longer than the age of the universe to factor, could be broken in hours on a sufficiently large quantum computer. Estimated requirement: ~4,000 logical qubits (or ~4–12 million physical qubits with error correction) for RSA-2048.
Chapter 38 — Shor's Algorithm

Grover's Algorithm: O(√N) Search Ch 39

Lov Grover (1996): find a marked element among N items in O(√N) queries, vs. O(N) classically.

Oracle Uf (phase oracle): flips the sign of the target state.
Uf|x⟩ = (-1)f(x)|x⟩ = I - 2|x*⟩⟨x*|

Diffusion D (inversion about the mean):
D = 2|s⟩⟨s| - I, where |s⟩ = uniform superposition.

Grover iteration: G = D · Uf
Optimal iterations: topt = ⌊π/4 · √N⌋
Success probability ≥ 1 - 1/N.

Geometric picture: The state lies in a 2D plane spanned by |w⟩ (target) and |w⊥⟩ (non-targets). Each Grover iteration rotates by 2θ toward |w⟩, where sin θ = 1/√N.

Overshooting. Unlike classical search, too many iterations decrease success probability — the state rotates past the target. The oscillation follows sin²((2t+1)θ).
Chapter 39 — Grover's Search Algorithm

Grover’s Algorithm: Quantum Circuit Visual

|0⟩ |0⟩ |0⟩ |0⟩ H H H H uniform superposition Oracle U𝐿 Diffusion D = 2|s⟩⟨s| − I Iteration 1 Oracle U𝐿 Diffusion D Iteration 2 × ~√N Oracle U𝐿 Diffusion D 📏 Measure collapse to solution |x*⟩ x* Total: ~\( \frac{\pi}{4}\sqrt{N} \) iterations — quadratic speedup over classical search \( O(N) \)
Chapter 39 — Grover’s Algorithm

Grover's Effect on Symmetric Cryptography Ch 39

Grover halves the effective bit-security of symmetric ciphers and hash functions:

CipherKey bitsClassicalPost-GroverAction
3DES168168-bit84-bitRetire
AES-128128128-bit64-bitUpgrade
AES-192192192-bit96-bitMarginal
AES-256256256-bit128-bitSafe
ChaCha20256256-bit128-bitSafe

Hash functions: SHA-256 preimage resistance drops from 256-bit to 128-bit (still safe). Collision resistance: birthday attack already gives 128-bit; Grover provides no further advantage for collisions.

The good news: Grover's speedup is only quadratic, not exponential. The fix is simple — double the key length. AES-256 retains 128-bit security even against quantum adversaries.
Practical caveat: Running Grover on AES-128 requires a quantum circuit implementing AES as a reversible oracle on ~2,800 logical qubits, plus ~264 sequential iterations. The actual wall-clock time may exceed classical brute force due to the slow quantum clock speed. The real concern is algorithmic improvements that combine Grover with structural attacks.
Chapter 39 — Grover's Search Algorithm

Timeline: When Will Quantum Computers Break Crypto? Ch 38–39

YearMilestoneSignificance
1994Shor's algorithm announcedPolynomial-time factoring (theoretical)
2001IBM factors 15 (7-qubit NMR)First experimental demonstration
2019Google "quantum supremacy" (53 qb)Quantum advantage on contrived problem
2023IBM Condor (1,121 qubits)Noisy qubits; no error correction at scale
2024NIST PQC standards publishedML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205)
Resource gap. Breaking RSA-2048 requires ~4,000 logical qubits (Gidney & Ekerå 2021) or ~4–20 million physical qubits with surface-code error correction. Current processors: ~1,000 noisy physical qubits. The gap is large but closing.
"Harvest now, decrypt later." Adversaries can record encrypted traffic today and store it until a quantum computer becomes available to decrypt it. For data with a long secrecy lifetime (government, medical, financial), migration to post-quantum cryptography is already urgent.
Chapters 38–39 — Quantum Algorithms & Impact

Discussion Reflection

Should we migrate to post-quantum cryptography today?

Consider the following factors:

  • Data lifetime: How long must your secrets remain secret?
  • Migration time: How long will it take your organisation to deploy new algorithms?
  • Mosca's theorem: If data lifetime + migration time > time to quantum computer, you are already too late.
  • Risk tolerance: Can you afford the downside of being wrong about the timeline?
  • Performance cost: PQC algorithms have larger keys and may be slower — is this acceptable?
Parts XIII–XV — Discussion

Part XIV

Lattice-Based Cryptography

Chapter 40

Lattice Fundamentals Ch 40

Definition — Lattice. Given a basis matrix B ∈ Rn×n, the lattice generated by B is:

L(B) = { Bx : x ∈ Zn }

The set of all integer linear combinations of the basis vectors.

Key property: A lattice has infinitely many bases. Some are "good" (short, nearly orthogonal); most are "bad" (long, nearly parallel). Finding a good basis from a bad one is computationally hard.

Determinant: det(L) = |det(B)|, independent of basis choice. Governs the density of lattice points.

Minkowski's Theorem. Every n-dimensional lattice L with determinant Δ contains a nonzero vector of length at most:

λ1(L) ≤ √n · Δ1/n

Finding such a short vector is the Shortest Vector Problem (SVP).
Ajtai's breakthrough (1996): Average-case lattice problems are as hard as worst-case lattice problems. This gives lattice-based crypto a unique theoretical advantage — breaking the scheme on random instances implies solving every instance of a hard lattice problem.
Chapter 40 — Lattice Problems and LWE

Hard Lattice Problems Ch 40

SVP (Shortest Vector Problem).
Given a lattice basis B, find the shortest nonzero lattice vector v ∈ L(B).
NP-hard to approximate within any constant factor.
CVP (Closest Vector Problem).
Given a lattice basis B and a target point t, find the lattice point closest to t.
At least as hard as SVP.
LWE (Learning With Errors) — Regev 2005.
Given (A, b = As + e mod q), find the secret s, where:
  • A ∈ Zqm×n is a random matrix
  • s ∈ Zqn is the secret
  • e ∈ Zm is a small error vector (from a discrete Gaussian)
Hardness: Regev proved a (quantum) reduction from worst-case lattice problems (GapSVP) to LWE.
Why LWE? The error e is what makes LWE hard. Without it, solving As = b mod q is trivial linear algebra. With it, the problem becomes as hard as worst-case lattice problems.
Chapter 40 — Lattice Problems and LWE

Lattice: Shortest Vector Problem Visual

b₁ b₂ b₁′ b₂′ λ₁ O Bad basis Reduced basis
Shortest Vector Problem (SVP).
Given a lattice basis B, find the shortest nonzero lattice vector \( \mathbf{v} \) minimizing \( \|\mathbf{v}\| \).
LLL Algorithm (Lenstra-Lenstra-Lovász, 1982):
Finds a vector within \( 2^{(n-1)/2} \) of the shortest in polynomial time. Not exact, but good enough for some applications.
Hardness: Exact SVP is NP-hard under randomized reductions. Approximate SVP within polynomial factors is believed hard — this is the foundation of lattice-based cryptography (ML-KEM, ML-DSA).
Key idea: Bad basis → hard to find short vectors. Good basis → easy. Basis reduction algorithms trade off quality vs. time.
Chapter 37 — Lattice-Based Cryptography

The LLL Algorithm: Lattice Reduction Ch 40

The Lenstra–Lenstra–Lovász (LLL) algorithm (1982) is a polynomial-time lattice reduction algorithm.

LLL guarantee. Given an n-dimensional lattice basis, LLL outputs a reduced basis whose shortest vector satisfies:

||b1|| ≤ 2(n-1)/2 · λ1(L)

Running time: O(n5 d log3 B) where B bounds the entries.

LLL finds an approximately shortest vector. The approximation factor 2(n-1)/2 is exponential in n — too weak for cryptographic parameters.

BKZ (Block Korkine-Zolotarev): Generalises LLL by applying SVP solvers to blocks of size β. As β increases:

  • Approximation quality improves (shorter vectors)
  • Running time increases exponentially in β
  • Best known: 2O(β) time via lattice sieving
Cryptographic parameters are chosen so that BKZ with the required block size β to break the scheme would take ≥ 2128 operations. For ML-KEM-768, this means β ≥ 600+, which is far beyond feasibility.
Chapter 40 — Lattice Problems and LWE

ML-KEM (Kyber): NIST FIPS 203 Ch 40

ML-KEM (Module Learning With Errors Key Encapsulation Mechanism) is the primary NIST post-quantum key exchange standard.

Module-LWE. Generalises LWE to work over polynomial rings Rq = Zq[X]/(Xn+1), with module rank k:
  • Public key: (A, t = As + e) over Rqk×k
  • Secret: s ∈ Rqk with small coefficients
  • Error: e ∈ Rqk with small coefficients

NTT (Number Theoretic Transform): Enables O(n log n) polynomial multiplication in Rq, making ML-KEM highly efficient.

Key encapsulation steps:

  1. KeyGen: Sample (s, e), compute t = As + e, output pk=(A,t), sk=s
  2. Encaps: Sample (r, e', e''), compute u = ATr + e', v = tTr + e'' + ⌈q/2⌋ · m. Output ciphertext (u,v) and shared key K.
  3. Decaps: Compute v - sTu ≈ ⌈q/2⌋ · m. Recover m via rounding. Derive K.
Correctness. v - sTu = ⌈q/2⌋·m + (small noise). Rounding recovers m when the noise is sufficiently small. Decryption failure probability < 2-140 for ML-KEM-768.
Chapter 40 — Lattice Problems and LWE

Key Size Comparison: Post-Quantum vs Classical Ch 40

SchemeSecurityPublic KeyCiphertext / Sig
RSA-3072128-bit (classical)384 B384 B
ECC P-256128-bit (classical)32 B64 B
ML-KEM-768128-bit (PQ)1,184 B1,088 B
ML-KEM-1024192-bit (PQ)1,568 B1,568 B
ML-DSA-65128-bit (PQ)1,952 B3,309 B
Classic McEliece128-bit (PQ)261 KB128 B
Trade-off. Post-quantum public keys and ciphertexts are significantly larger than ECC equivalents. ML-KEM-768 keys are ~37× larger than ECC P-256 keys. Classic McEliece keys are ~8,000× larger!
Performance is competitive. ML-KEM is actually faster than RSA and comparable to ECC in encapsulation/decapsulation time. The NTT-based arithmetic is highly efficient on modern processors. The main cost is bandwidth, not computation.

Hybrid mode (recommended): Combine ML-KEM with ECDH during the transition period. If either is broken, the other still protects the session key.

Chapter 40 — Lattice Problems and LWE

Attacking Lattice Schemes: BKZ Reduction Ch 40

Best known attacks reduce LWE to approximate SVP via BKZ lattice reduction.

BKZ-β attack pipeline:

  1. Construct a lattice from the LWE instance
  2. Run BKZ with block size β
  3. Reduced basis reveals the short secret/error vector

SVP subroutines:

  • Enumeration: 2O(n²) time, polynomial space
  • Sieving: 2O(n) time and 2O(n) space
  • Best sieve: 20.292n classical, 20.265n quantum
No quantum speedup for lattice problems. Unlike factoring, no efficient quantum algorithm is known for SVP or LWE. Grover gives at most a quadratic speedup for sieving, already accounted for in parameter choices.
Chapter 40 — Lattice Problems and LWE

ML-KEM Security Estimates Ch 40

ML-KEM parameter security (NIST FIPS 203):
Parameter Setn, k, qSecurity (NIST level)
ML-KEM-512256, 2, 3329Level 1 (~128-bit)
ML-KEM-768256, 3, 3329Level 3 (~192-bit)
ML-KEM-1024256, 4, 3329Level 5 (~256-bit)
Parameters are chosen conservatively: ML-KEM-768 requires BKZ block sizes costing far more than 2128 operations. Security margins account for potential algorithmic improvements in lattice sieving.
Chapter 40 — Lattice Problems and LWE

Part XV

Code-Based Crypto & Frontiers

Chapters 43–45

McEliece (1978): The Oldest Unbroken Public-Key Scheme Ch 43

Robert McEliece proposed his cryptosystem in 1978, just one year after RSA. It remains unbroken after 47 years.

Key idea. Disguise a decodable error-correcting code (Goppa code) as a random-looking linear code.
  • Private key: Goppa code with efficient decoding (Patterson's algorithm)
  • Public key: G' = SGP, where S is scrambling, P is permutation
  • Encrypt: c = mG' + e (add t random errors)
  • Decrypt: Use the private Goppa decoder to correct e and recover m
Security basis. Decoding a random linear code is NP-hard (Berlekamp, McEliece, van Tilborg 1978). The public key G' is indistinguishable from a random generator matrix.
Achilles' heel: key size. Classic McEliece at 128-bit PQ security requires a 261 KB public key. This has limited its practical adoption despite its excellent security track record.

NIST status: Classic McEliece advanced to Round 4 of the NIST PQC competition. Selected for future standardisation alongside the lattice-based primary standards.

Chapter 43 — Code-Based Cryptography

Error-Correcting Codes and Syndrome Decoding Ch 43

Goppa codes are a family of algebraic error-correcting codes defined over finite fields.

Binary Goppa code Γ(L, g):
Given a set L = {α1, ..., αn} ⊂ F2m and a polynomial g(x) of degree t over F2m, the code consists of all vectors c ∈ F2n such that:

Σi ci / (x - αi) ≡ 0 mod g(x)

Parameters: length n, dimension ≥ n - mt, minimum distance ≥ 2t+1.
Syndrome decoding (NP-hard).
Given a parity-check matrix H and syndrome s = HcT, find a word e of minimum weight such that HeT = s.

This is the computational problem underlying McEliece security.

Best known attacks:

  • Information Set Decoding (ISD): 2O(n) — Lee-Brickell, Stern, BJMM algorithms
  • Quantum ISD: Grover-assisted variants give ~√ speedup, but problem remains hard
  • No known polynomial-time quantum algorithm for syndrome decoding
Chapter 43 — Code-Based Cryptography

NIST Post-Quantum Standards (2024) Ch 44

StandardTypeHard ProblemFamilyPublished
ML-KEM (FIPS 203)Key EncapsulationModule-LWELatticeAug 2024
ML-DSA (FIPS 204)Digital SignatureModule-LWE + SISLatticeAug 2024
SLH-DSA (FIPS 205)Digital SignatureHash function securityHash-basedAug 2024
FN-DSA (draft)Digital SignatureNTRU latticeLatticeForthcoming
Classic McElieceKEMSyndrome decodingCode-basedRound 4
Diversity by design. NIST deliberately selected algorithms from multiple families (lattice, hash-based, code-based) to hedge against a breakthrough attack on any single hard problem.
Lesson from SIKE. The isogeny-based candidate SIKE was broken in 2022 by Castryck and Decru using unexpected mathematical insights. This demonstrates that even well-studied schemes can fall — diversification is essential.
Chapter 44 — NIST Post-Quantum Standards

NIST Post-Quantum Standards 2024

Lattice-Based ML-KEM (CRYSTALS-Kyber) Key Encapsulation ML-DSA (CRYSTALS-Dilithium) Digital Signatures Hash-Based SLH-DSA (SPHINCS+) Stateless Signatures XMSS (Stateful) RFC 8391 Code-Based McEliece (Classic McEliece) KEM (large keys) BIKE/HQC (Round 4) Evaluation Quantum Threat: Shor breaks RSA & ECC — Grover halves symmetric key security AES-256 remains secure (128-bit post-quantum). Public-key crypto must migrate entirely. 2016 NIST call 2022 Round 3 selection 2024 FIPS 203/204/205 2025+ Migration begins
Chapter 44 — NIST PQC Standards

PQC Parameter Comparison Ch 44

AlgorithmNIST LevelPublic KeySecret KeyCT / SigKeyGenEncaps / SignDecaps / Verify
Key Encapsulation Mechanisms
ML-KEM-5121800 B1,632 B768 BFastFastFast
ML-KEM-76831,184 B2,400 B1,088 BFastFastFast
ML-KEM-102451,568 B3,168 B1,568 BFastFastFast
Classic McEliece1–5261 KB–1.3 MB128–240 BSlowFastFast
Digital Signatures
ML-DSA-4421,312 B2,560 B2,420 BFastFastFast
ML-DSA-6531,952 B4,032 B3,309 BFastFastFast
ML-DSA-8752,592 B4,896 B4,627 BFastFastFast
SLH-DSA-128s132 B64 B7,856 BSlowSlowFast
SLH-DSA-128f132 B64 B17,088 BModerateModerateFast
Key observation: ML-KEM and ML-DSA offer an excellent balance of security, key size, and performance. SLH-DSA has the smallest keys but the largest signatures. Classic McEliece has enormous keys but the smallest ciphertexts.
Chapter 44 — NIST Post-Quantum Standards

Migration to PQC: Phases 1–2 Ch 44

Phase 1 — Inventory (Now)
  • Catalogue all cryptographic dependencies
  • Identify quantum-vulnerable algorithms (RSA, ECC, DH)
  • Assess data secrecy lifetimes
Phase 2 — Hybrid Deployment (2024–2028)
  • Deploy PQC + classical in parallel (hybrid mode)
  • TLS 1.3 with ML-KEM + ECDH
  • If either is broken, the other still protects
Mosca's inequality: If data_lifetime + migration_time > quantum_arrival, you are already too late to begin.
Chapter 44 — NIST Post-Quantum Standards

Migration to PQC: Phases 3–4 Ch 44

Phase 3 — Full PQC (2028–2035)
  • Remove classical components once PQC is battle-tested
  • Update certificates, protocols, hardware tokens
  • Re-encrypt stored data with PQC
Phase 4 — Crypto-Agility (Ongoing)
  • Design systems to swap algorithms without redesign
  • Prepare for potential breaks in PQC schemes
  • Monitor advances in quantum computing and cryptanalysis
The SIKE lesson (2022): Castryck and Decru broke SIKE using unexpected connections to isogeny theory. Even mature, well-studied schemes can fall overnight. Crypto-agility is not optional.
Chapter 44 — NIST Post-Quantum Standards

Course Synthesis: The Eternal Dialectic Ch 45

From Al-Kindi (850 AD) to post-quantum (2024), a single pattern recurs:

CipherAttackStronger Cipher
Monoalphabetic substitutionFrequency analysis (Al-Kindi, 850)Polyalphabetic ciphers (Alberti, 1467)
Vigenère cipherKasiski / IC analysis (1863)Rotor machines (Enigma, 1918)
EnigmaBomba / Banburismus (Rejewski, Turing)One-time pad (Shannon, 1949)
DESDifferential & linear cryptanalysisAES (Rijndael, 2001)
RSA / DH / ECCShor's algorithm (1994)Lattice / code-based PQC (2024)
Key insight. Every successful attack has made cryptography stronger, not weaker. Differential cryptanalysis did not destroy block ciphers — it led to AES with provable resistance. Shor's algorithm has not destroyed public-key cryptography — it has catalysed post-quantum schemes built on even harder mathematical problems.
Chapter 45 — Synthesis

Four Grand Themes of Cryptanalysis Ch 45

ThemeEraCentral IdeaKey Technique
Frequency Analysis 850–1900 Natural language is not uniform Letter/digram counts, IC
Algebraic Structure 1930–2000 Ciphers are mathematical objects Group theory, S-box analysis
Computational Hardness 1976–present Security rests on intractable problems Factoring, DLP, lattice problems
Quantum Threats 1994–present Quantum computers break hardness assumptions Shor, Grover, post-quantum design
Convergence. Modern cryptanalysis demands proficiency in all four themes simultaneously. A post-quantum implementer must understand statistical testing, algebraic structure, computational hardness reductions, and quantum algorithms.
The human element persists. Despite all mathematical advances, implementation errors (Heartbleed, BEAST, CRIME) and social engineering remain the dominant real-world attack vectors. Theory and practice must advance together.
Chapter 45 — Synthesis

The Security Landscape: Classical vs Quantum Ch 45

ProblemClassicalQuantumStatus
Integer FactoringSub-exponentialPolynomial (Shor)Broken
Discrete Log (Zp*)Sub-exponentialPolynomial (Shor)Broken
Elliptic Curve DLExponentialPolynomial (Shor)Broken
Lattice SVPExponentialExponentialResistant
Syndrome DecodingExponentialExponentialResistant
Hash PreimageExponential√ speedup (Grover)Resistant
The cliff vs the slope. Public-key schemes face a cliff-edge collapse when quantum computers arrive — their security goes from high to zero. Symmetric ciphers face a gradual slope — their security is halved, but doubling the key length restores it.
Cryptographic family health:
  • Lattice-based: Strong security + good performance. Primary NIST standard.
  • Code-based: Long track record. Large keys.
  • Hash-based: Minimal assumptions. Signature-only, large sigs.
  • Symmetric: Use AES-256. Problem solved.
Chapter 45 — Synthesis

Open Problems: Foundations & Quantum Ch 45

Foundational questions:

  • P vs NP: If P = NP, no computationally-secure cryptography is possible (except OTP). All modern crypto assumes P ≠ NP.
  • One-way functions: Do they exist? Equivalent to P ≠ NP for many purposes.
  • Tighter LWE reductions: Stronger worst-to-average-case connections?

Quantum algorithm frontier:

  • Does a quantum speedup exist for lattice SVP beyond Grover?
  • Can quantum algorithms break LWE directly (not via SVP)?
  • Quantum random oracle model: formal security in the quantum setting
Chapter 45 — Synthesis

Practical Frontiers Ch 45

  • Side-channel resistance: Formal verification of constant-time implementations
  • Crypto-agility: Protocol designs that swap algorithms without redesign
  • AI-assisted cryptanalysis: Machine learning for cipher analysis, protocol verification
  • Fully homomorphic encryption: Practical FHE from LWE (bootstrapping efficiency)
The SIKE lesson (2022).
Castryck and Decru's break used unexpected connections to isogeny theory. Even mature, well-studied schemes can fall. The field must remain perpetually humble and vigilant.
Chapter 45 — Synthesis

Lessons for the Practitioner (1–3) Ch 45

1. Never rely on obscurity.
Every proprietary cipher that has been analysed has been broken. Kerckhoffs' principle (1883): the system must be secure even if everything except the key is public.
2. Understand your threat model.
Classical, quantum, and side-channel attackers require different defences. A scheme secure against classical adversaries may be completely broken by a quantum computer.
3. Crypto-agility is essential.
Systems must be designed so that algorithms can be swapped without rebuilding the architecture. The SIKE break showed that even "well-studied" schemes can fall overnight.
Chapter 45 — Synthesis

Lessons for the Practitioner (4–6) Ch 45

4. Implementation matters as much as theory.
Heartbleed, BEAST, CRIME, and ROCA were all attacks on implementations, not on the underlying mathematics. Constant-time code, formal verification, and careful engineering are essential.
5. Diversity is a defence.
Relying on a single hardness assumption is fragile. NIST's portfolio approach — lattice, hash-based, code-based — provides resilience against a breakthrough in any one family.
6. Start migrating now.
Apply Mosca's inequality. For long-lived data, the transition to PQC should already be underway. Hybrid deployment (PQC + classical) is the recommended first step.
Chapter 45 — Synthesis

Course Map: All 15 Parts Ch 45

PartTitleKey TechniqueEra
IFoundationsFrequency analysis850–1900
IIClassical PolyalphabeticKasiski / IC methods1400–1920
IIIPolygraphic CiphersHill cipher, matrix attacks1929–1940
IVEnigmaGroup-theoretic cycle analysis1918–1945
VInformation TheoryEntropy, perfect secrecy, unicity distance1949–1970
VILinear CryptanalysisLinear approximations of S-boxes1993–2001
VIIDifferential CryptanalysisInput difference propagation1990–2001
VIIIAESWide trail strategy, MixColumns1998–2001
IXRSAFactoring (NFS, ECM, Wiener)1977–2020
XDiffie-HellmanIndex calculus, Pohlig-Hellman1976–2020
XIElliptic CurvesMOV, Smart's attack, pairings1985–2020
XIIAlgebraic CryptanalysisGröbner bases, SAT solvers2000–2020
XIIIQuantum ThreatShor & Grover algorithms1994–2024
XIVLattice CryptographyLWE, LLL/BKZ reduction1996–2024
XVCode-Based & FrontiersSyndrome decoding, PQC migration2017–2024
Chapter 45 — Synthesis

Course Summary

The Art and Science of
Codebreaking Continues

Cryptanalysis is not merely the art of breaking ciphers. It is a discipline that compels us to think rigorously about what it means for a system to be secure — to distinguish genuine confidence from false assurance, and to remain perpetually humble before the ingenuity of future adversaries.

The journey from Al-Kindi to post-quantum cryptography is, at its deepest level, a journey in the philosophy of knowledge — what can be known, what can be hidden, and what remains forever uncertain.

Bartosz Naskręcki • UAM Kryptografia kwantowa i postkwantowa • Reference (Ch 37–45)