Four parties,
one secret each
Nobody in this chain trusts anybody else's word. Trust comes from what each party can prove with key material the others can't read.
A sealed co‑processor
A chip running a payment applet. Its keys were loaded at personalisation and can never be read back out — only used.
A sceptical interviewer
Holds no card secrets at all. It knows the scheme CA public keys, asks questions, measures risk, and passes signed answers upstream.
The postal service
Routes the authorisation by BIN and carries the chip data in field 55. Normally it cannot check the cryptogram — it has no keys. Only in stand‑in does the scheme hold a copy.
The only other key holder
A tamper‑responsive box holding the Issuer Master Key. From it, it can re‑derive your exact card key and re‑compute your exact cryptogram.
Symmetric, asymmetric, and a PIN
EMV runs two completely separate cryptosystems at once, for two different threats.
Symmetric — proves the card is present
A three‑step key ladder ends in a MAC over the transaction data: the ARQC. Only a chip holding the right key can produce it, and it changes every single time because the counter moves.
IMKAC → MKcard = f(IMK, PAN‖PSN) → SK = f(MK, ATC) → ARQC = MACSK(data)
Asymmetric — proves it offline, instantly
The terminal can't call anyone mid‑transaction on a plane or a bus. So it verifies an RSA certificate chain rooted in a scheme CA key baked into the terminal, then challenges the card to sign a fresh random number.
Scheme CA PK → Issuer PK cert (90) → ICC PK cert (9F46) → SDAD (9F4B)
The PIN — proves it's you, not the card
Offline PIN is enciphered with the card's own public key and checked by the chip; the terminal never learns it. Online PIN instead travels as a PIN block under acquirer working keys, re‑enciphered at every HSM hop.
PIN block ‖ random ‖ ICC data → RSAICC‑PK → VERIFY (00 20 00 88)
Make a payment
Twelve steps, end to end. The cryptograms below are really computed in your browser with AES‑128 CBC‑MAC over EMV‑shaped data — change the amount and they change; tamper with the message and the issuer's recomputation genuinely fails.
ICC
POS
Scheme
HSM
APDU & message trace
What a cryptogram
does and doesn't prove
- The real chip was there. Only it holds MKAC, and it never leaves the die.
- This exact transaction. Amount, currency, date, terminal country and the terminal's random number are all inside the MAC.
- Freshness. The ATC increments once per transaction; a replayed ARQC arrives with a stale counter and is rejected.
- The issuer answered. The ARPC comes back and the chip itself verifies it — a fake "approved" from the network doesn't fool the card.
- That your card number is secret. The PAN and expiry are read in the clear — which is why skimmed data still fuels card‑not‑present fraud.
- That the cardholder consented, unless a CVM ran. "No CVM" contactless relies on limits, not proof.
- That the terminal is honest. A crooked terminal can lie about its own risk checks; the issuer sees the TVR but can't audit the shop.
- Distance. A relay attack forwards genuine APDUs over a network in real time — which is why timing bounds exist in newer contactless kernels.