ArticleslgStudy

science

Derived unique key per transaction

Derived unique key per transaction is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Derived unique key per transaction rather than just read about it. In short: In cryptography, Derived Unique Key Per Transaction (DUKPT) is a key management scheme in which for every transaction, a unique key is used which is derived from a fixed key. Therefore, if a derived key is compromised, future and past transaction data are still protected since the next or prior keys cannot be determined easily.

Key takeaways

  • Derived unique key per transaction belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Derived unique key per transaction to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Derived unique key per transaction from memory before moving on to harder problems.

Reference excerpt

In cryptography, Derived Unique Key Per Transaction (DUKPT) is a key management scheme in which for every transaction, a unique key is used which is derived from a fixed key. Therefore, if a derived key is compromised, future and past transaction data are still protected since the next or prior keys cannot be determined easily. The current (as of May 2024) version of the standard (ANSI X9.24-3-2017) was released in 2017. It is based on the AES encryption algorithm and is recommended for new implementations. This article is about the original variant of DUKPT that is based on the TDEA encryption algorithm and is described in the Appendix C of ANSI X9.24-3-2017.

Overview DUKPT allows the processing of the encryption to be moved away from the devices that hold the shared secret. The encryption is done with a derived key, which is not re-used after the transaction. DUKPT is used to encrypt electronic commerce transactions. While it can be used to protect information between two companies or banks, it is typically used to encrypt PIN information acquired by Point-Of-Sale (POS) devices. DUKPT is not itself an encryption standard; rather it is a key management technique. The features of the DUKPT scheme are:

enable both originating and receiving parties to be in agreement as to the key being used for a given transaction, each transaction will have a distinct key from all other transactions, except by coincidence, if a present derived key is compromised, past and future keys (and thus the transactional data encrypted under them) remain uncompromised, each device generates a different key sequence, originators and receivers of encrypted messages do not have to perform an interactive key-agreement protocol beforehand.

History DUKPT was invented in the late 1980s at Visa but didn't receive much acceptance until the 1990s, when industry practices shifted towards recommending, and later requiring, that each device have a distinct encryption key. Before DUKPT, state of the art was known as Master/Session, which required every PIN-encrypting device to be initialized with a unique master key. In handling transactions originating from devices using Master/Session key management, an unwanted side effect was the need for a table of encryption keys as numerous as the devices deployed. At a major merchant acquirer the table could become quite large indeed. DUKPT resolved this. In DUKPT each device is still initialized with a distinct key, but all of the initialization keys of an entire family of devices are derived from a single key, the base derivation key (BDK). To decrypt encrypted messages from devices in the field, the recipient need only store the BDK.

Keys As stated above, the algorithm needs an initial single key which in the original description of the algorithm was called the super-secret key, but was later renamed to—in a more official-sounding way—Base Derivation Key (or BDK). The original name perhaps conveys better the true nature of this key, because if it is compromised then all devices and all transactions are similarly compromised. This is mitigated by the fact that there are only two parties that know the BDK:

the recipient of the encrypted messages (typically a merchant acquirer) the party which initializes the encryption devices (typically the manufacturer of the device). The BDK is usually stored inside a tamper-resistant security module (TRSM), or hardware security module (HSM). It must remain clear that this key is not the one used to initialize the encryption device that will participate in DUKPT operations. See below for the actual encryption key generation process.

A key derived from the BDK, this is known as the Initial PIN Encryption Key (IPEK) The IPEK is injected into the device. A set of Future Keys are derived from the IPEK and stored (inside the device) Afterwards the IPEK is immediately discarded. For each transaction, one of the future keys is used to derive a PIN Encryption Key (PEK), and optionally a Message Authentication Code (MAC) key and a Data Encryption key. The last two keys are only needed when the device supports message authentication and data encryption

Communication

Origination On the originating (encrypting) end, the system works as follows:

A transaction is initiated which involves data to be encrypted. The typical case is a customer's PIN. A key is retrieved from the set of “Future Keys” This is used to encrypt the message, creating a cryptogram. An identifier known as the “Key Serial Number” (KSN) is returned from the encrypting device, along with the cryptogram. The KSN is formed from the device's unique identifier, and an internal transaction counter. The (cryptogram, KSN) pair is forwarded on to the intended recipient, typically the merchant acquirer, where it is decrypted and processed further. Internally, the device does the following: Increments the transaction count (using an internal counter) Invalidates the key just used, and If necessary generates more future keys

Receiving On the receiving (decrypting) end, the system works as follows:

The (cryptogram, KSN) pair are received. The appropriate BDK (if the system has more than one) is located. The receiving system first regenerates the IPEK, and then goes through a process similar to that used on the originating system to arrive at the same encrypting key that was used (the session key). The Key Serial Number (KSN) provides the information needed to do this. The cryptogram is decrypted with session key. Any further processing is done. For merchant acquirers, this usually means encrypting under another key to forward on to a switch (doing a “translate”), but for certain closed-loop operations may involve directly processing the data, such as verifying the PIN.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Derived unique key per transaction

Start with the simplest possible case. Write down what Derived unique key per transaction claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Derived unique key per transaction before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Derived unique key per transaction ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Derived unique key per transaction

In research
Derived unique key per transaction appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Derived unique key per transaction in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Derived unique key per transaction is common in secondary-school and first-year university syllabi. It links to neighbouring topics Key management, so understanding it makes those chapters shorter.
In everyday life
Look for Derived unique key per transaction outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Derived unique key per transaction” →

How to study Derived unique key per transaction in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Derived unique key per transaction means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Derived unique key per transaction out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Derived unique key per transaction in simple terms?

In cryptography, Derived Unique Key Per Transaction (DUKPT) is a key management scheme in which for every transaction, a unique key is used which is derived from a fixed key. Therefore, if a derived key is compromised, future and past transaction data are still protected since the next or prior key…

Why does Derived unique key per transaction matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Derived unique key per transaction?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Derived unique key per transaction.

Tags

  • Key management

Keep exploring