M10 / Payment cryptography

EMV, DUKPT and the payment HSM

Advisor

After this lesson you can

  • Distinguish EMV's two separate cryptographic mechanisms (the symmetric transaction cryptogram versus asymmetric SDA/DDA/CDA offline authentication)
  • Explain how DUKPT derives a per-transaction key from the BDK and KSN, and the real certification difference between a general-purpose HSM and a payment HSM

Before this10 payment surfaces: 4 that need PQC, 6 that don't

Mental model

In the previous lesson you saw EMV’s transaction cryptogram (symmetric, no PQC needed) in the group of 6 and EMV 3DS (asymmetric, PQC needed) in the group of 4. This lesson goes deeper into that duality within EMV itself, shows the real mechanism of DUKPT, and adds a third, payments-specific layer (PCI PTS HSM) to the CAVP/CMVP discipline you saw in M9.

EMV’s two layers: the cryptogram (symmetric) versus offline authentication (asymmetric)

Two separate cryptographic mechanisms run in an EMV transaction, and mixing them up is a common mistake. The transaction cryptogram (such as the ARQC, an authorization request, or the TC, transaction completion) is produced by deriving a transaction-specific session key from the card’s own master key; it is entirely symmetric and conceptually similar to DUKPT (deriving a transaction-specific key from a card-specific key). A separate feature, Offline Data Authentication (ODA) (SDA, DDA, CDA), lets the terminal authenticate the card offline (without contacting the issuer); this is asymmetric: EMV historically used RSA (1024/2048 bit), and DEPLOYED2022-01-01 since the EMV Contact Chip v4.4 and Contactless Kernel specifications it also supports ECC (such as P-256). The PQC transition affects the second mechanism (ODA), not the first (the transaction cryptogram). When answering an architect’s question “are our EMV cards secure”, make clear which mechanism you are talking about.

DUKPT: BDK, KSN and a per-transaction key

DUKPT (Derived Unique Key Per Transaction) is a symmetric key management scheme defined by ANSI X9.24. During production, a POS terminal is loaded with an initial key derived from a BDK (Base Derivation Key, a master key held centrally in an HSM) and a KSN (Key Serial Number: device identity + a counter). In each transaction the terminal uses the KSN’s current value to derive, with a function ANSI X9.24 defines, a single-use working key specific to that transaction; the key is discarded when the transaction ends, the KSN’s counter advances for the next transaction, and a new key is derived. This mechanism is symmetric from start to finish (AES or TDES); there is no asymmetric operation at any point, so, as you saw in the previous lesson, it is structurally not affected by PQC.

The payment HSM: a layer beyond the general-purpose HSM

In M9 you saw the distinction between CAVP (algorithm validation) and CMVP (module validation, FIPS 140-3). In the payments world a third layer is added: PCI PTS HSM (the PCI Security Standards Council’s own HSM certification), covering payments-specific functions such as PIN processing, card verification, card production and ATM interconnection. A payment HSM (for example Thales’s payShield family) usually carries both FIPS 140-3 (general-purpose module validation) and PCI PTS HSM (payments-specific validation) certificates; these are separate processes on separate timelines. When verifying a bank’s claim that “our payment HSM supports PQC”, apply M9’s CAVP/CMVP discipline here too, with one more layer: check separately whether both the FIPS 140-3 and the PCI PTS HSM certificates, and both the CAVP and CMVP stages, really cover PQC algorithms.

Numbers to know

  • DUKPT: a POS terminal is loaded at production with a derivative of a BDK (Base Derivation Key) and a KSN (Key Serial Number, device identity + counter); in each transaction, from the KSN's current value, the function ANSI X9.24 defines derives a single-use working key specific to that transaction
  • A payment HSM (e.g. Thales payShield) needs a PCI PTS HSM certificate in addition to a general-purpose HSM's FIPS 140-3 certificate; a third, payments-specific layer on top of the CAVP/CMVP discipline you saw in M9

Lab: Check your own payment HSM inventory against the two certifications

[not run] This is an inventory check exercise, not a runnable command

Requires: . Check your setup

shell
# Take your organization's payment HSMs and, for each: does it have a FIPS 140-3 certificate (check in CMVP, as in M9), does it have a PCI PTS HSM certificate (check PCI SSC's own list); they are separate certificates
Recorded output
A table: HSM model, FIPS 140-3 status, PCI PTS HSM status; one does not substitute for the other, and both may be required

At the table

How to say this in a bank meeting.

To an executive
Our payment HSMs need an additional certification (PCI PTS HSM) that general-purpose HSMs do not; in the PQC transition this means tracking not just algorithm support but also when this additional certification will cover PQC algorithms.
To an architect
It is critical not to mix up EMV's two separate cryptographic layers: the transaction cryptogram (ARQC/TC) is symmetric, produced with session keys derived from the card's master key; offline data authentication (SDA/DDA/CDA) is asymmetric, using RSA (and since 2022 also ECC) to authenticate the card offline. The PQC transition affects the second, not the first.
Objection
“"Our payment HSM is already FIPS 140-3 certified. Doesn't that mean it is PQC ready?"”
Answer
No, the same distinction you saw in M9 applies here: a FIPS 140-3 certificate is general-purpose module validation, and PCI PTS HSM is a separate, payments-specific certification. For a payment HSM to support PQC algorithms (such as ML-DSA), both the FIPS 140-3 and the PCI PTS HSM certificates must cover those algorithms; the two can move on separate timelines.

Sources

Checkpoint

Answer first, then compare with the model answer and score yourself against the rubric. Saved in this browser only.

  1. 01Recall

    What are EMV's two separate cryptographic mechanisms, and which is symmetric and which asymmetric?

  2. 02Recall

    How does DUKPT derive a transaction key, and what are the BDK and KSN for?

  3. 03Scenario

    A bank hears that its payment HSMs have received FIPS 140-3 PQC certification and says 'we are ready for PQC'. What is missing from this claim?

  4. 04Hostile

    An architect says 'Our EMV cards are already secure; PQC doesn't affect us.' Push back using the asymmetric nature of SDA/DDA/CDA.

Project linkContributes to the payment HSM inventory section of Project 3, as the template for the two-certification (FIPS 140-3 + PCI PTS HSM) checklist.