prime256v1 is, or how big a SHA-384 is. This page is those tabs, folded into one sheet.It’s a refresher, not a course: one line per word, and the standard it comes from. The story behind most of these starts in The locks I use without noticing. If symmetric, asymmetric, cipher and mode are new words, the update to my SSL/TLS post explains them properly, and the update to my Handshake post shows them in a real capture.
The three jobs#
| Job | Family | Names you’ll meet |
|---|---|---|
| Agree a key with a stranger | Public-key | Diffie-Hellman, ECDH, X25519, RSA, ML-KEM |
| Prove who’s talking | Public-key | RSA, ECDSA, EdDSA (Ed25519), ML-DSA, SLH-DSA |
| Encrypt the data | Shared-key (symmetric) | AES, ChaCha20 |
| Prove nothing changed | Shared-key side | SHA-256, HMAC, the GCM tag |
Rule of thumb: a large quantum computer threatens the first two rows, not the last two.
AES and its modes#
AES comes in three sizes, AES-128, AES-192 and AES-256; each “transforms data in blocks of 128 bits”, and the number is the key length (FIPS 197). A block cipher on its own handles one 16-byte block. A mode says how to use it on a whole message.
| Mode | One line | Watch out |
|---|---|---|
| ECB (Electronic Codebook) | Each block encrypted on its own, like looking it up in a codebook | The same block always gives the same output, so patterns show |
| CBC (Cipher Block Chaining) | Each block mixed with the previous encrypted block | Needs an IV that is unpredictable |
| CTR (Counter) | Encrypts a counter and XORs the result with the data | Every counter must be different, across all messages under one key |
| GCM (Galois/Counter Mode) | Counter mode for secrecy plus a tag that proves nothing changed | Never reuse an IV with the same key |
ECB, CBC and CTR come from SP 800-38A, which warns that in ECB “any given plaintext block always gets encrypted to the same ciphertext block”. GCM comes from SP 800-38D:
- What it gives: confidentiality “using a variation of the Counter mode”, and authenticity “using a universal hash function”.
- Sizes: an IV of 96 bits is recommended; the tag is normally 128, 120, 112, 104 or 96 bits.
- The one rule: if an IV is ever repeated under the same key, the implementation “may be vulnerable to the forgery attacks”; the rule “is almost as important as the secrecy of the key”.
AEAD: lock and seal in one step#
AEAD (authenticated encryption with associated data) is what GCM is an example of. “Both confidentiality and message authentication are provided”, and the associated data is information “that needs to be authenticated, but does not need to be kept confidential”, such as a header (RFC 5116). ChaCha20-Poly1305 is the other common AEAD: a stream cipher plus an authenticator (RFC 8439).
In TLS 1.3 “all ciphers are modeled as” AEAD (RFC 9846, section 5.2). Each record’s nonce is the record’s sequence number XORed with a fixed IV, so it never repeats under one key (section 5.3).
Reading a TLS 1.3 cipher suite#
“A cipher suite defines the pair of the AEAD algorithm and hash algorithm to be used with HKDF” (RFC 9846, appendix
B.4). So TLS_AES_128_GCM_SHA256 reads as:
| Part | Meaning |
|---|---|
TLS | The protocol |
AES_128_GCM | The AEAD: AES with a 128-bit key in GCM mode |
SHA256 | The hash used to derive keys (HKDF) and fingerprint the handshake |
| Suite | Status in RFC 9846 |
|---|---|
TLS_AES_128_GCM_SHA256 | MUST implement |
TLS_AES_256_GCM_SHA384 | SHOULD |
TLS_CHACHA20_POLY1305_SHA256 | SHOULD |
TLS_AES_128_CCM_SHA256, TLS_AES_128_CCM_8_SHA256 | Also defined |
No key exchange or signature in the name: in TLS 1.3 those are agreed separately (the Peer Temp Key and Peer signature type lines in OpenSSL’s output).
Hashes and what’s built on them#
| Name | Output | One line | Standard |
|---|---|---|---|
| SHA-256 | 256 bits | The everyday fingerprint | FIPS 180-4 |
| SHA-384 | 384 bits | Same family, longer output | FIPS 180-4 |
| SHA-512 | 512 bits | Same family, longest output | FIPS 180-4 |
| SHA-3 (SHA3-256 etc.) | 224 to 512 bits | A different design, a second family | FIPS 202 |
| SHAKE128 / SHAKE256 | As long as you ask | “Extendable-output functions” from the SHA-3 family | FIPS 202 |
| HMAC | The hash’s size | A hash mixed with a shared key, to prove who sent a message | RFC 2104 |
| HKDF | As long as you ask | Turns a shared secret into keys, by “extract-then-expand”; TLS 1.3 derives all its keys this way | RFC 5869 |
| MGF1 | As long as you ask | “A mask generation function based on a hash function”, used inside RSA-OAEP and RSA-PSS | RFC 8017 |
SHA-2 is the family name for SHA-256, SHA-384 and SHA-512.
Agreeing a key#
| Name | One line | Size to remember |
|---|---|---|
| Diffie-Hellman (1976) | Mixing paint in public; both sides end with the same secret | |
| ECDH | Diffie-Hellman on an elliptic curve | |
| X25519 / X448 | The modern ECDH functions from RFC 7748 | X25519: 32-byte keys |
| RSA (1977) | Open padlocks: anyone can lock, only the key holder can open | |
| RSA-OAEP | The padding for RSA encryption, “REQUIRED to be supported for new applications” (RFC 8017) | |
| KEM | Key-encapsulation mechanism: I lock a fresh secret with your public key and send it | |
| ML-KEM-768 | The post-quantum KEM (FIPS 203) | Public key 1,184 bytes, ciphertext 1,088, secret 32 |
| X25519MLKEM768 | The hybrid: X25519 and ML-KEM together, safe if either holds |
Proving who’s talking#
| Name | One line | Size to remember |
|---|---|---|
| RSA-PSS | RSA signatures with randomised padding, “REQUIRED in new applications” (RFC 8017) | |
| ECDSA | Signatures on an elliptic curve, usually P-256 or P-384 | |
| Ed25519 / Ed448 | EdDSA signatures (RFC 8032) | Ed25519: 32-byte key, 64-byte signature |
| ML-DSA-65 | The main post-quantum signature (FIPS 204) | Public key 1,974 bytes, signature 3,309 |
| SLH-DSA | The hash-based backup (FIPS 205) | SLH-DSA-SHA2-128s: 50-byte key, 7,856-byte signature |
| LMS / XMSS | Older hash-based signatures; “stateful”, so the signer must track which keys it has used (SP 800-208) |
The post-quantum sizes are from my own runs with Go and OpenSSL 3.5.
One curve, three names. Tools print the same curves differently (RFC 8422, table 4):
| SECG | ANSI X9.62 | NIST |
|---|---|---|
secp256r1 | prime256v1 | P-256 |
secp384r1 | P-384 |
So ecdsa_secp256r1_sha256 in OpenSSL’s output means ECDSA on P-256 with SHA-256.
The new locks#
| Name | Was | Job | Status |
|---|---|---|---|
| ML-KEM (FIPS 203) | CRYSTALS-Kyber | Agree a key | Standard, August 2024 |
| ML-DSA (FIPS 204) | CRYSTALS-Dilithium | Sign | Standard, August 2024 |
| SLH-DSA (FIPS 205) | SPHINCS+ | Sign, hash-based backup | Standard, August 2024 |
| FN-DSA (FIPS 206) | FALCON | Sign | Announced |
| HQC | Agree a key, a backup built on different maths | Selected March 2025 | |
| FrodoKEM, Classic McEliece, BIKE | Agree a key | Alternatives in Open Quantum Safe |
| Word | One line |
|---|---|
| Shor’s algorithm | The quantum algorithm that breaks factoring and discrete logarithms, so RSA, ECDH and ECDSA |
| CRQC | A cryptographically relevant quantum computer: one big enough to run Shor on real keys |
| Harvest now, decrypt later | Recording encrypted traffic today to read it once a CRQC exists |
| 2030 / 2035 | NIST plans to deprecate today’s public-key algorithms after 2030 and disallow them after 2035 (IR 8547) |
| Hybrid | Classic and post-quantum together, during the move |
| Crypto agility | Being able to swap algorithms without rewriting the application |
TLS and trust#
| Word | One line |
|---|---|
| TLS 1.3 | The protocol behind HTTPS; first RFC 8446 (2018), now RFC 9846 (July 2026), same version |
| Key share | Each side’s half of the key exchange in the first messages |
| Key update | Changing keys during a long connection |
| Certificate chain | Signatures linking a server’s key to a root you already trust |
| Root certificate / trust store | The roots your system trusts, and the list that holds them |
| mTLS | The client presents a certificate too |
| HTTPS interception | A product that ends your connection and opens its own to the server (what that did to my test) |
| RFC | A numbered internet document; replaced by a new number, never edited (TLS 1.3’s new edition) |
Finding the crypto you use#
| Word | One line |
|---|---|
| SBOM | A list of the software components in a product |
| CBOM | The same idea for cryptography: algorithms, keys, certificates and protocols, and where they’re used |
| CycloneDX | The SBOM format that CBOM is part of |
bom-ref | The ID one entry in the list uses to point to another |
| OID | A dotted number that names an algorithm unambiguously |
| CBOMkit | The PQCA’s toolset for making and checking CBOMs |
| OPA / Rego | A policy engine and its language, used to grade a CBOM |
| PQCA | The Post-Quantum Cryptography Alliance, under the Linux Foundation |
| liboqs | Open Quantum Safe’s library of post-quantum algorithms, for experiments rather than production |
Takeaways#
- Three jobs: agree a key, prove who’s talking, protect the data. Quantum threatens the first two.
- A mode turns AES into something usable; GCM encrypts and seals at once, and must never reuse an IV with one key.
- A TLS 1.3 cipher suite names only the AEAD and the hash; the key exchange and signature are agreed separately.
secp256r1,prime256v1and P-256 are the same curve.- The new locks are ML-KEM, ML-DSA and SLH-DSA, with HQC and FN-DSA to follow.
References#
- FIPS 197, Advanced Encryption Standard (AES): NIST, 2001, updated May 2023; AES-128, -192 and -256 and the 128-bit block
- SP 800-38A, Block Cipher Modes of Operation: Methods and Techniques: NIST, December 2001; ECB, CBC and CTR, the ECB warning, the IV and counter rules
- SP 800-38D, Galois/Counter Mode (GCM) and GMAC: NIST, November 2007; what GCM provides, IV and tag lengths, the IV uniqueness rule
- RFC 5116, An Interface and Algorithms for Authenticated Encryption: Standards Track, January 2008; what AEAD and associated data are
- RFC 8439, ChaCha20 and Poly1305 for IETF Protocols: Informational, June 2018; ChaCha20 and Poly1305 as an AEAD
- RFC 9846, The Transport Layer Security (TLS) Protocol Version 1.3: IETF, July 2026; AEAD records (5.2), per-record nonce (5.3), HKDF key schedule (7.1), mandatory suites (9.1), cipher suite list (B.4)
- FIPS 180-4, Secure Hash Standard: NIST, August 2015; SHA-2 digest sizes
- FIPS 202, SHA-3 Standard: NIST, August 2015; SHA-3 and SHAKE
- RFC 2104, HMAC: IETF
- RFC 5869, HKDF: Informational, May 2010; extract-then-expand
- RFC 8017, PKCS #1 v2.2: Informational, November 2016; RSA-OAEP, RSA-PSS and MGF1
- RFC 7748, Elliptic Curves for Security: IRTF; X25519 and X448
- RFC 8032, EdDSA: IRTF; Ed25519 and Ed448 sizes
- RFC 8422, ECC Cipher Suites for TLS 1.2 and Earlier: IETF; table 4, equivalent curve names (the RFC is now obsoleted by RFC 9846; the table still stands)
- SP 800-208, Stateful Hash-Based Signature Schemes: NIST, October 2020; LMS and XMSS
- NIST releases first 3 finalized post-quantum encryption standards: NIST, 13 August 2024; FIPS 203, 204, 205, former names, FN-DSA announced
- NIST selects HQC as fifth algorithm for post-quantum encryption: NIST, 11 March 2025
- NIST IR 8547, Transition to Post-Quantum Cryptography Standards: NIST; Shor, deprecation after 2030 and disallowance after 2035
- Ring-LWE is solvable in quantum quasipolynomial time, and more: the PQCA perspective: PQCA, 2026; FrodoKEM, Classic McEliece, BIKE and LMS/XMSS in Open Quantum Safe
- CycloneDX CBOM: OWASP CycloneDX; what a CBOM is
- liboqs: Open Quantum Safe; the production warning



