Crypto categories — a mindmap¶
Prereqs: Motivation · History · Challenges (recommended)
Next: How to read the math · Why cryptography? · Public-key picture
Learning goals. After this page you can:
- Place security goals: confidentiality, integrity, authentication, and non-repudiation
- Separate symmetric / keyed tools from asymmetric / PKC
- Place shared unkeyed building blocks (hash / XOF / KDF / randomness)
- Distinguish encryption, signatures, key agreement, and KEMs
- Treat classical PKC and PQC as asymmetric subfamilies
- Sort PQC by hardness family (with job tags)
- Compare AEAD vs MAC vs digital signature
- See protocols as bundles of tools — before the math pages
Why this map exists¶
Later pages dive into codes, lattices, and hardware. This page is a teaching folder tree (conceptual organization, not a rigid ontology): what kinds of crypto tools exist, what job each does, and how PQC fits. Shared primitives (hashes, XOFs, KDFs, randomness) can serve both symmetric and asymmetric schemes.
Skip freely; come back when a word feels fuzzy. Glossary: PKC · KEM · PQC · AEAD · MAC · Hash · Integrity · Authentication · Non-repudiation.
The maps¶
One giant mindmap is hard to read. This page uses:
- a roomy overview matching the tool stack below, then
- one detailed map per folder in tabs (including Goals — what crypto is for, not a peer tool family).
Overview¶
Symmetric and asymmetric are the two main tool families. Shared building blocks feed both. Protocols sit on top of the stack.
flowchart TB
C(("Cryptography"))
C --> S["Symmetric / keyed<br/>• AES / ChaCha20<br/>• AEAD<br/>• HMAC / CMAC"]
C --> A["Asymmetric / PKC<br/>• Classical: RSA, ECC, DH<br/>• PQC: lattice · hash-based · code-based (+ research)"]
S --> B["Shared building blocks<br/>Hash functions · XOFs · KDFs · Randomness"]
A --> B
B --> PR["Protocols and applications<br/>TLS · HTTPS · VPN · Secure Boot · IoT"]
classDef hub fill:#0f766e,stroke:#5eead4,color:#ecfeff
classDef leaf fill:#115e59,stroke:#99f6e4,color:#ecfeff
class C hub
class S,A,B,PR leaf
Detail maps (one folder at a time)¶
Not a tool shelf — four security objectives the tools above aim for.
flowchart TB
G["Goals"]
G --> C["Confidentiality<br/>strangers cannot read"]
G --> I["Integrity<br/>silent edits are detected"]
G --> A["Authentication<br/>who/which key is speaking"]
G --> N["Non-repudiation<br/>third-party evidence of signing"]
C --> CE["Encryption / AEAD"]
I --> IM["MAC / AEAD / signature"]
A --> AM["MAC-AEAD shared key<br/>or signature public verify"]
N --> NS["Digital signatures<br/>not plain MAC/AEAD"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class G,C,I,A,N,CE,IM,AM,NS n
Keyed tools that share one secret on both sides. Ordinary unkeyed hashes live under Shared building blocks.
flowchart TB
S["Symmetric / keyed"]
S --> E["AES / ChaCha<br/>encryption"]
S --> AE["AEAD<br/>encrypt + integrity tag"]
S --> M["HMAC / CMAC<br/>keyed MAC only"]
S --> Q["Quantum note<br/>Grover - larger keys / tags"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class S,E,AE,M,Q n
Usually unkeyed (or randomness) primitives reused by both symmetric and asymmetric schemes — conceptual shelf, not “a kind of PKC.”
flowchart TB
B["Shared building blocks"]
B --> H["Hash / digest<br/>SHA-2 / SHA-3"]
B --> X["XOF / SHAKE<br/>extendable output"]
B --> K["KDF<br/>derive keys from secrets"]
B --> R["Randomness<br/>fresh keys / nonces"]
B --> N["Used by<br/>HMAC / signatures / KEMs / TLS"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class B,H,X,K,R,N n
Public + private key family. Jobs first; classical and PQC are subfamilies under this same branch.
flowchart TB
A["Asymmetric / PKC"]
A --> J["Jobs"]
J --> E["Public-key encryption"]
J --> D["Digital signatures"]
J --> K["Key agreement"]
J --> M["KEM"]
A --> CL["Classical PKC<br/>RSA / DH / ECC<br/>Shor-vulnerable"]
A --> P["PQC by hardness family<br/>lattice / hash / code / other"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class A,J,E,D,K,M,CL,P n
Subcategory of asymmetric / PKC — widely used before the PQC transition; Shor-vulnerable.
flowchart TB
CL["Classical PKC<br/>under asymmetric"]
CL --> R["RSA<br/>encryption and signatures"]
CL --> DH["Diffie-Hellman DH<br/>shared secret only"]
CL --> ECC["ECC<br/>ECDH agreement / ECDSA signatures"]
CL --> SH["Shor-vulnerable<br/>migrate motivation"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class CL,R,DH,ECC,SH n
Subcategory of asymmetric / PKC. Primary folders are hardness families (where the hardness comes from). Scheme names carry a job tag (KEM vs signature). NIST is not the only standards path — see History.
flowchart TB
P["PQC<br/>under asymmetric"]
P --> L["Lattice / LWE"]
L --> LK["ML-KEM - KEM"]
L --> LD["ML-DSA - signature"]
L --> LF["FN-DSA / Falcon / FrodoKEM-style"]
P --> H["Hash-based"]
H --> HS["SLH-DSA - signature"]
P --> C["Code-based"]
C --> CK["McEliece / HQC-shaped - KEMs"]
P --> M["Multivariate"]
M --> MS["signatures - research / other tracks"]
P --> I["Isogeny-related"]
I --> IS["historical / careful after breaks"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class P,L,LK,LD,LF,H,HS,C,CK,M,MS,I,IS n
Real apps are bundles, not one algorithm.
flowchart TB
PR["Protocols / apps"]
PR --> T["TLS / HTTPS"]
PR --> V["VPN"]
PR --> B["Secure Boot"]
PR --> I["IoT / constrained links"]
PR --> X["Hybrid migration<br/>classical + PQC together"]
classDef n fill:#115e59,stroke:#99f6e4,color:#ecfeff
class PR,T,V,B,I,X n
Branch guide (read with the maps)¶
1. Goals (what crypto is for)¶
| Goal | Plain English | Typical tools |
|---|---|---|
| Confidentiality | Strangers cannot read the content | Encryption; often AEAD |
| Integrity | Silent edits are detected | MAC, AEAD tag, or signature |
| Authentication | You know which key produced the data | Shared-key MAC/AEAD or public-key signature |
| Non-repudiation | Third parties can check a signer’s mark (with key-identity assumptions) | Digital signatures — not plain MAC/AEAD |
Real apps usually need several of these together.
Deeper toys: Why cryptography?.
2. AEAD vs MAC vs digital signature¶
This is the distinction that most helps when moving into PQC (where you will meet KEMs and signatures).
| Capability | AEAD | MAC | Signature |
|---|---|---|---|
| Encryption (confidentiality) | Yes | No | No |
| Integrity | Yes | Yes | Yes |
| Shared-key authentication | Yes | Yes | No |
| Public verification | No | No | Yes |
| Third-party evidence of signer authorization | No | No | Yes — subject to key identity and security assumptions |
Read-out: AEAD/MAC prove “someone who knows the shared secret touched this.” A signature proves “the holder of this public verification key signed this,” which strangers can check without that secret.
Quick self-check (auth)¶
Can a TLS record’s AEAD tag replace a certificate signature for proving the server’s long-term identity to a browser?
Answer
No — AEAD is shared-key authentication for the session traffic. Long-term server identity uses signatures (and certificates) that outsiders can verify with a public key.3. Symmetric, shared blocks, and asymmetric (PKC)¶
| Symmetric / keyed | Shared building blocks | Asymmetric / PKC | |
|---|---|---|---|
| Keys | Same secret both sides | Usually unkeyed (or RNG) | Public + private pair |
| Role | AES/ChaCha, AEAD, HMAC/CMAC | Hash, XOF, KDF, randomness | Encrypt / sign / agree / KEM |
| Quantum slogan | Grover → larger keys/tags | Larger digests / margins | Shor breaks classical PKC |
Classical PKC and PQC are two subfamilies under asymmetric / PKC — not separate top-level folders beside it.
Glossary: Symmetric crypto · Hash · KDF · Asymmetric / PKC · PKC.
4. Four PKC jobs (do not mix the APIs)¶
| Job | Who uses which key | What you get |
|---|---|---|
| Public-key encryption | Encrypt with \(\mathsf{pk}\); decrypt with \(\mathsf{sk}\) | Confidentiality of a message |
| Digital signature | Sign with \(\mathsf{sk}\); verify with \(\mathsf{pk}\) | Integrity + authentication; often non-repudiation |
| Key agreement (e.g. DH / ECDH) | Both contribute; output a shared secret | A session secret — not “encrypt this email” by itself |
| KEM | \(\mathsf{Encaps}(\mathsf{pk})\to(\mathsf{ct},K)\); \(\mathsf{Decaps}(\mathsf{sk},\mathsf{ct})\to K\) | Fresh session key \(K\) under a clean API |
Modern deployments lean on KEMs (and signatures) more than raw “encrypt a whole file with RSA.”
Story page: Public-key picture · concept: KEM.
Quick self-check (PKC jobs)¶
Diffie–Hellman gives two parties a shared secret. Is that the same API as “encrypt a message under Alice’s public key”?
Answer
No — DH is key agreement. Message encryption and KEMs are different jobs (related story, different algorithms / APIs).5. Classical PKC vs PQC (both under asymmetric)¶
Both are asymmetric / PKC subfamilies.
Classical PKC (widely used before the PQC transition):
- RSA — public-key encryption and digital signatures
- Diffie–Hellman (DH) — key agreement (shared secret), not direct encryption/signing
- Elliptic-curve cryptography (ECC) — e.g. ECDH (agreement) and ECDSA (signatures)
A large enough quantum computer running Shor’s algorithm breaks these. That is a main reason for PQC.
See Motivation · History.
Post-quantum cryptography (PQC) — still public-key style algorithms classical computers can run today, designed so large quantum computers should not break that public-key layer.
Primary categories = hardness families (math source of hardness):
| Family | Plain hardness slogan | Example schemes (job) |
|---|---|---|
| Lattice / LWE | Noisy linear equations stay hard | ML-KEM (KEM), ML-DSA (sig); FN-DSA/Falcon; FrodoKEM-style |
| Hash-based | One-way hashes + tree/state tricks | SLH-DSA (sig) |
| Code-based | Decoding a random-looking code is hard | McEliece / Classic McEliece; HQC-shaped (KEMs) |
| Multivariate | Multivariate equation systems stay hard | Signature research / other standards tracks |
| Isogeny-related | Hard problems on isogenies | Historical interest; treat carefully after breaks |
Secondary postcard = by job (same schemes, cut by API role):
| Job | Deploy-facing examples | Also see |
|---|---|---|
| KEM | ML-KEM | HQC / McEliece-shaped; FrodoKEM-style (e.g. ISO/IEC paths) |
| Signature | ML-DSA, SLH-DSA | FN-DSA/Falcon (optional) |
Do not confuse the two cuts: family answers “what math?”, job answers “what API?”.
What NIST vs ISO/IEC each focus on: History. Tracks: code-based · lattice · hash-based signatures · hardware.
6. Protocols are bundles¶
TLS / HTTPS / VPN / Secure Boot / IoT stacks are not one algorithm. They combine:
- key establishment (KEM or key agreement, often hybrid classical + PQC during migration),
- signatures (and certificates) for long-term identity / authorization evidence,
- symmetric crypto (often AEAD) for bulk bytes,
- hashes / KDFs for transcripts and key derivation.
PQC mainly replaces the public-key pieces; AES-like tools and shared building blocks stay, often with larger margins.
Common confusions¶
- “Encryption” in everyday speech often mixes confidentiality with integrity/authentication — they differ.
- Integrity ≠ authentication ≠ non-repudiation — see the goals table and AEAD/MAC/signature comparison.
- A KEM is not a signature.
- DH is not RSA encryption.
- PQC is not a third peer next to “symmetric” and “asymmetric” — it is an asymmetric / PKC subfamily.
- PQC’s main shelves are hardness families, not “whatever NIST named this year”; NIST names are instances under those families.
- Family ≠ job — ML-KEM and ML-DSA share a lattice family but different APIs.
- A bare hash (SHA-2/3) is usually unkeyed — not the same shelf as AES or a shared-key MAC.
- AEAD/MAC = shared-key authentication; signatures = public verification (and usually non-repudiation assumptions).
- PQC ≠ quantum communication; PQC runs on ordinary computers.
- Publishing a public key is intentional; the private key must stay secret.
Next steps¶
- How to read the math — if symbols feel scary
- Why cryptography? — slower toys for goals + symmetric vs PKC
- Public-key picture — padlock story + KEM API
- Glossary — jump back whenever a label blurs