The ‘P’ in ‘TPK’
The advent of PCI-compliant Card Track/PAN encryption schemes at the point-of-sale and the payment switches that support them has brought with it no small amount of confusion, especially with Online Debit and EBT, where two types of encryption are now in flight on all transactions. There’s one scheme for the PIN, and a second fundamentally different scheme for the Card Track/PAN. As a result, we get exchanges like this (and these are smart people on all sides, trust me):
Our client – looking to on-board a new POS hardware vendor– sends a communication to the vendor rep and says:
We will be sending your key custodians their respective components for one Terminal Master Key (TMK) and two Base Derivation Keys (BDK-DUKPT).
They get a response back from the vendor that says:
I am filling in for the Key Manager that is currently out on vacation. I informed him of your intentions to send a TMK along with two BDKs. He informed me that we do not usually accept TMKs from our customers.
Okay, this is a reasonable misinterpretation. The guy sees ‘TMK’ and throws up a red flag, thinking we must be using Master Session to encrypt our PINs. The prevailing standard for PINs is Triple DES DUKPT. Our client's security guy clarifies with a nice summary of operations and how everything fits:
We use a Thales TRSM to decrypt/encrypt the debit PINs from our stores. The store PEDs encrypt the PINs with the BDKs we have injected into them. For credit card processing, we encrypt the credit card data at the PED using our own TPKs, decrypt on our host, and send to [the authorizer]. Our Thales is used to produce the TMK and BDKs that are loaded into the PEDs. These keys are all encrypted using our own Local Master Key (LMK). The TMK is used to encrypt our TPKs that are sent to the PED’s from our host.
He asked me to follow-up with any further clarification I could add. I said this:
[You are] absolutely 100% correct. The TMKs and TPKs have nothing to do with Debit/EBT PIN encryption. They are used in exactly the manner you describe. They are thinking of the TMK in its traditional usage of Master Session encryption for PINs. [You] have re-purposed the TMK/TPK infrastructure to play a part in a PCI-compliant track/PAN encryption scheme. This brings some additional confusion and concern because the ‘P’ in ‘TPK’ stands for ‘PIN.’ That’s some unfortunate nomenclature. They are not used for PINs. Period. You use a master session scheme for the PAN/track info, and Triple DES BDK-based DUKPT for PINs.
Comments