Reading list
Start here (free)
- AWS Payment Cryptography — industry terminology. The clearest modern glossary of payment keys. The whole user guide doubles as a textbook: key import/export (TR-31, TR-34), CVV, Mastercard functions.
- Pismo — Cryptographic process with the card network. A processor describing, in public, its ZMK (Zone Master Key) ceremonies and which keys go to networks and bureaus.
- Futurex payment HSM docs — MFK (Master File Key), Excrypt.
- Cryptomathic — overview of key block formats and Utimaco on the Atalla Key Block.
- EFTlab tutorials and their free BP-Tools cryptographic calculator.
- EMVCo specifications (free with registration): EMV (Europay, Mastercard, Visa — the chip card standard) Book 2 — Security and Key Management; EMV Card Personalisation Specification.
- PCI (Payment Card Industry) SSC (Security Standards Council) document library (free): PCI PIN (Personal Identification Number) Security Requirements — the rules behind ceremonies, components, key blocks.
Books
- Ilya Dubinsky, Cryptography for Payment Professionals (CRC Press, 2023). Written for software engineers; the best single book on this topic.
- Slava Gomzin, Hacking Point of Sale (Wiley, 2014). The attacker’s view of PCI, EMV and PIN security.
- Ross Anderson, Security Engineering, chapter “Banking and Bookkeeping” — free PDF from the author’s Cambridge page. Real attacks on HSMs and why the rules exist.
- María Isabel González Vasco, Ángel Luis Pérez del Pozo, Criptografía esencial (Ra-Ma, 2021) — the theory, in Spanish. Map below.
Code you can read
- psec (Python): TR-31 (ANSI X9 Technical Report 31, the key block format), CVV (Card Verification Value), PIN blocks, DES (Data Encryption Standard)/AES (Advanced Encryption Standard) helpers.
- pyemv (Python): EMV key derivation, ARQC (Authorization Request Cryptogram)/ARPC (Authorization Response Cryptogram), secure messaging, CVC3 (Card Verification Code 3, dynamic, for contactless).
- This site’s calculators were cross-checked against both libraries’ published vectors and against OpenSSL.
Map: Criptografía esencial → this course
| Section | Pages | Supports |
|---|---|---|
| 2.4 DES y AES; 2.4.2 Modos de operación | 68–80 | Module 1 (ciphers, ECB/CBC), KCV, key blocks |
| 2.2 Códigos de autenticación de mensajes | 56–61 | Module 1 (MAC), TR-31 MAC, CVV, ARQC |
| 2.3.1 Cifrado de Vernam | 61–63 | XOR, key components |
| 3.1 El problema de gestión de claves; KDC | 89–92 | Modules 2–3 (hierarchy, zones) |
| 3.2.1 Intercambio de clave; 3.2.3 RSA; 3.3.3 Certificación | 92–100, 126–128 | TR-34, remote key loading |
| 5.3.1–5.3.2 Compartición de secretos, Shamir | 203–212 | Module 3 (components, k-of-n) |
| Test de autoevaluación, ch. 2 | 84 | Self-check |
Safe to skip for this purpose: chapter 4 (provable security), most of chapter 1, El Gamal, Merkle–Hellman, DSA (Digital Signature Algorithm), identity-based crypto, 5.1–5.2, multiparty computation.