Series

Applied Cryptography: A Field Guide for Protocol Designers

25 parts of 25

  1. 47 min read

    A protocol designer's field guide to IND-CPA, IND-CCA2, EUF-CMA, AEAD, and the random oracle model, and why the wrong adversary model sinks real protocols.

  2. 54 min read

    Every key, nonce, IV, and salt fails in one of two ways: predictable when it must be unpredictable, or repeated when it must be unique. A field guide.

  3. 53 min read

    Why the bytes you sign matter more than the algorithm: hash length extension, ASN.1/DER forgery, JWT alg confusion, and XML signature wrapping -- and the fix.

  4. 51 min read

    How the Web PKI turns a certificate into a trust decision -- path validation, revocation, and Certificate Transparency -- and every famous way that trust broke.

  5. 50 min read

    Every block cipher mode -- ECB, CBC, CFB, OFB, CTR -- answers only confidentiality, never integrity. A field guide to why, the famous breaks, and the AEAD fix.

  6. 46 min read

    A padding oracle reads your plaintext without touching your key. Why CBC, Vaudenay, Lucky13, and POODLE are one bug -- and why Encrypt-then-MAC ends it.

  7. 49 min read

    AES-GCM, ChaCha20-Poly1305, CCM, OCB3, GCM-SIV, AEGIS, and Ascon, compared by the three sharp edges that decide every deployment: nonce, hardware, commitment.

  8. 45 min read

    A repeated ECDSA nonce leaks your private key with grade-school algebra; a reused AES-GCM IV forges ciphertext. Why -- and how determinism fixes both.

  9. 50 min read

    Why disk and format-preserving ciphers are deterministic, unauthenticated permutations, and how block width and domain size decide XTS, Adiantum, HCTR2, or FF1.

  10. 54 min read

    A field guide to cryptographic hashes: the one promise behind SHA-2, SHA-3, and BLAKE3, why MD5 and SHA-1 died, and how to choose one that keeps its promise.

  11. 54 min read

    Why HMAC, KMAC, GMAC, and Poly1305 never broke -- but Flickr, Lucky Thirteen, and 184 GCM servers did. A field guide to MACs and Encrypt-then-MAC.

  12. 54 min read

    A password hash has one job: make each guess expensive on the cheapest attacker hardware. Why fast hashes fail, and how bcrypt, Argon2, and yescrypt fix it.

  13. 47 min read

    A raw DH or ML-KEM shared secret is key material, not a key. How HKDF extract-then-expand, key separation, and the TLS 1.3 key schedule get it right.

  14. 49 min read

    Textbook RSA is a trapdoor, not a cryptosystem. A field guide to OAEP, PSS, PKCS#1 v1.5, and the Bleichenbacher-ROBOT-Marvin padding-oracle lineage, done right.

  15. 57 min read

    Textbook ECC is hard; deployed ECC broke anyway. A field guide to P-256, Curve25519, Ristretto255, invalid-curve attacks, cofactors, and constant-time.

  16. 49 min read

    Turning a string into an elliptic-curve point is a two-decade problem behind a one-line API. Why H(m)*G and hunt-and-peck both fail, and how RFC 9380 fixes it.

  17. 53 min read

    ECDLP and RSA held; the nonce, the canonical form, and the verifier broke instead. A field guide to ECDSA, EdDSA, RSA-PSS, determinism, and malleability.

  18. 61 min read

    The discrete log held for fifty years; Logjam, small-subgroup, and invalid-curve attacks broke the deployment instead. A field guide to FFDHE, ECDH, and X25519.

  19. 54 min read

    The industry standardized encrypt-to-a-public-key four incompatible ways. HPKE (RFC 9180) is the boring, correct fix -- and its non-goals are the whole discipline.

  20. 50 min read

    How a server applies its secret key to your secret input without ever seeing it: OPRF, VOPRF, and POPRF (RFC 9497), the engine of OPAQUE and Privacy Pass.

  21. 60 min read

    How the discrete log stayed hard for forty years while the proofs built on it kept breaking: Pedersen commitments, Schnorr, Sigma protocols, and Fiat-Shamir.

  22. 52 min read

    Shamir 1979 splits a secret so any t-of-n rebuild it and t-1 learn nothing. The perfect-secrecy core never broke; every failure was in the machinery around it.

  23. 52 min read

    A field guide to the five NIST post-quantum primitives -- ML-KEM, ML-DSA, SLH-DSA, FN-DSA, HQC: math intuition, exact sizes, failures, and decision rules.

  24. 56 min read

    The hard part of post-quantum is not the new algorithms -- it is finding the old ones. A field guide to crypto-agility, discovery, and the CycloneDX CBOM.

  25. 52 min read

    Correct, constant-time crypto still leaks keys through timing, cache, speculation, and fault channels, and deployed systems break most often at key custody.

Related tags

#cryptography#security-definitions#authenticated-encryption#provable-security#ind-cca2#aead#post-quantum-cryptography#protocol-design#randomness#csprng#entropy#nonces#applied-cryptography#security#serialization#canonicalization#signature-wrapping#hash-length-extension#jwt#asn1-der#x509#pki#certificate-transparency#revocation#tls#web-security#certificate-authorities#block-cipher-modes#aes#cbc#ctr#gcm#padding-oracle#encrypt-then-mac#lucky-thirteen#aes-gcm#chacha20-poly1305#nonce-misuse#key-commitment#ecdsa#nonce-reuse#digital-signatures#rfc-6979#applied-crypto#disk-encryption#xts#adiantum#hctr2#format-preserving-encryption#length-preserving-encryption#hash-functions#sha-2#sha-3#blake3#collision-resistance#length-extension#message-authentication#hmac#poly1305#gmac#password-hashing#argon2#bcrypt#scrypt#yescrypt#memory-hardness#pbkdf2#key-derivation#hkdf#tls-1-3#key-separation#extract-then-expand#post-quantum-crypto#rsa#oaep#rsa-pss#bleichenbacher#elliptic-curve-cryptography#curve25519#p-256#ristretto255#invalid-curve-attack#constant-time#hash-to-curve#elliptic-curves#rfc-9380#bls-signatures#oprf#pake#side-channels#eddsa#schnorr#diffie-hellman#forward-secrecy#x25519#ecdh#ffdhe#key-agreement#hpke#rfc-9180#kem-dem#public-key-encryption#post-quantum#oblivious-pseudorandom-function#voprf#privacy-pass#opaque#rfc-9497#commitments#sigma-protocols#pedersen-commitment#fiat-shamir#zero-knowledge-proofs#bulletproofs#secret-sharing#shamir#threshold-cryptography#verifiable-secret-sharing#distributed-key-generation#threshold-signatures#frost#mpc-wallets#ml-kem#ml-dsa#slh-dsa#falcon#hqc#lattice-cryptography#crypto-agility#cbom#cryptographic-inventory#cyclonedx#sbom#crypto-migration#pqc#key-management#fault-attacks#cryptographic-engineering#hsm#spectre

← All series Start here