Derived unique key per transaction

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[1]) was released in 2017.[2] 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.

  • First: A key derived from the BDK, this is known as the IPEK (Initial PIN Encryption Key)
  • Second: The IPEK is then injected into the devices, so any compromise of that key compromises only the device, not the BDK. This creates yet another set of keys (inside the device) irreversibly derived from it (nominally called the Future Keys)
  • Fourth: Afterwards the IPEK is then immediately discarded. NOTE: This step contradicts "Session Keys" section where it indicates that only 21 "Future Keys" are generated. The IPEK must be retained by the terminal in order generate the next batch of 21 Future Keys. NOTE: This isn't true, the future keys are used to derive new future keys, the IPEK is in fact discarded.
  • Fifth: Future Keys are used to encrypt transactions in the DUKPT process.

Upon detection of compromise the device itself derives a new key via the Derived Key Generation Process.

Communication

Origination

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

  1. A transaction is initiated which involves data to be encrypted. The typical case is a customer's PIN.
  2. A key is retrieved from the set of “Future Keys”
  3. This is used to encrypt the message, creating a cryptogram.
  4. 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.
  5. The (cryptogram, KSN) pair is forwarded on to the intended recipient, typically the merchant acquirer, where it is decrypted and processed further.
  6. Internally, the device does the following:
    1. Increments the transaction count (using an internal counter)
    2. Invalidates the key just used, and
    3. If necessary generates more future keys

Receiving

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

  1. The (cryptogram, KSN) pair are received.
  2. The appropriate BDK (if the system has more than one) is located.
  3. 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.
  4. The cryptogram is decrypted with session key.
  5. 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.

Session Keys

The method for arriving at session keys is somewhat different on the originating side as it is on the receiving side. On the originating side, there is considerable state information retained between transactions, including a transaction counter, a serial number, and an array of up to 21 “Future Keys”. On the receiving side there is no state information retained; only the BDK is persistent across processing operations. This arrangement provides convenience to the receiver (a large number of devices may be serviced while only storing one key). It also provides some additional security with respect to the originator (PIN capture devices are often deployed in security-averse environments; the security parameters in the devices are ‘distant’ from the sensitive BDK, and if the device is compromised, other devices are not implicitly compromised).

Registers Usage

Backup Registers

The following storage areas relating to key management are maintained from the time of the "Load Initial Key" command for the life of the PIN Entry Device:

Encryption Counter (21 bits)

A counter of the number of PIN encryptions that have occurred since the PIN Entry Device was first initialized. Certain counter values are skipped (as explained below), so that over 1 million PIN encryption operations are possible. Note: The concatenation (left to right) of the Initial Key Serial Number Register and the Encryption Counter form the 80-bit (20 hexadecimal digits) Key Serial Number Register.

Future Key Registers (21 registers of 34 hexadecimal digits each)

A set of 21 registers, numbered #1 to #21, used to store future PIN encryption keys. Each register includes a 2 hexadecimal digit longitudinal redundancy check (LRC) or a 2 hexadecimal digit cyclical redundancy check (CRC).


Temporary Registers

The following storage areas relating to key management are required on a temporary basis and may be used for other purposes by other PIN processing routines:

Current Key Pointer (approximately 4 hexadecimal digits)

Contains the address of that Future Key Register whose contents are being used in the current cryptographic operation. It identifies the contents of that Future Key Register whose address is contained in the Current Key Pointer.

Shift Register (21 bits)

A 21-bit register, whose bits are numbered left to right as #1 to #21. This register normally contains 20 "zero" bits and a single "one" bit. One use of this register is to select one of the Future Key Registers. The Future Key Register to be selected is the one numbered identically to the bit in the Shift Register containing the single "one".

Crypto Register-1 (16 hexadecimal digits)

A register used in performing cryptographic operations.

Crypto Register-2 (16 hexadecimal digits)

A second register used in performing cryptographic operations.

Key Register (32 hexadecimal digits)

A register used to hold a cryptographic key.

Practical Matters (KSN scheme)

In practical applications, one would have several BDKs on record, possibly for different customers, or to contain the scope of key compromise. When processing transactions, it is important for the receiver to know which BDK was used to initialize the originating device. To achieve this, the 80-bit KSN is structured into three parts: as Key Set ID, a TRSM ID, and the transaction counter. The algorithm specifies that the transaction counter is 21-bits, but treats the remaining 59 bits opaquely (the algorithm only specifies that unused bits be 0-padded to a nibble boundary, and then 'f' padded to the 80-bit boundary). Because of this, the entity managing the creation of the DUKPT devices (typically a merchant acquirer) is free to subdivide the 59 bits according to their preference.

The industry practice is to designate the partitioning as a series of three digits, indicating the number of hex digits used in each part: the Key Set ID, the TRSM ID, and the transaction counter. A common choice is '6-5-5', meaning that the first 6 hex digits of the KSN indicate the Key Set ID (i.e., which BDK is to be used), the next 5 are the TRSM ID (i.e. a device serial number within the range being initialized via a common BDK), and the last 5 are the transaction counter.

This notational scheme is not strictly accurate, because the transaction counter is 21 bits, which is not an even multiple of 4 (the number of bits in a hex digit). Consequently, the transaction counter actually consumes one bit of the field that is the TRSM ID (in this example that means that the TRSM ID field can accommodate 2(5*4-1) devices, instead of 2(5*4), or about half a million).

Also, it is common practice in the industry to use only 64-bits of the KSN (probably for reasons pertinent to legacy systems, and DES encryption), which would imply that the full KSN is padded to the left with four ‘f’ hex digits. The remaining 4 hex digits (16-bits) are available, nonetheless, to systems which can accommodate them.

The 6-5-5 scheme mentioned above would permit about 16 million BDKs, 500,000 devices per BDK, and 1 million transactions per device.

References

Read other articles:

本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目需要补充更多来源。 (2018年3月17日)请协助補充多方面可靠来源以改善这篇条目,无法查证的内容可能會因為异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:羅生門 (電影) — 网页、新闻、书籍、学术、图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。 �...

 

Wally Hickel Gubernur Alaska ke-2 dan ke-8Masa jabatan3 Desember 1990 – 5 Desember 1994WakilJack Coghill PendahuluSteve CowperPenggantiTony KnowlesMasa jabatan5 Desember 1966 – 29 Januari 1969WakilKeith Harvey Miller PendahuluWilliam A. EganPenggantiKeith Harvey MillerMenteri Dalam Negeri Amerika Serikat ke-38Masa jabatan24 Januari 1969 – 25 November 1970PresidenRichard Nixon PendahuluStewart UdallPenggantiRogers Morton Informasi pribadiLahirWalter Joseph Hick...

 

Perang Portugis-UtsmaniyahKerakah Portugis mengungguli kapal-kapal Muslim dari Diu.Tanggalabad ke 16LokasiSamudera Hindia/Timur/AfrikaHasil Kemenangan Portugis [1][2][3][4]Perubahanwilayah Kekaisaran Portugis menguasai Samudera Hindia dan Teluk Persia, membangun benteng di sepanjang pantai Afrika dan India dan mempertahankan dominasi perdagangan rempah-rempah. Utsmaniyah mundur ke tanah air mereka di Laut Merah.[1][2][3][5]Pihak ...

Association football club in Saudi Arabia Football clubAl FayhaFull nameAl Fayha Football Club[citation needed]Nickname(s)Al Burtuqali (The Orange)Tawahin Sudair (The Mills of Sudair)Founded1953; 71 years ago (1953)GroundAl Majma'ah Sports CityCapacity7,000ChairmanTawfiq Al-ModaiheemManagerVuk RašovićLeaguePro League2022–23Pro League, 11th of 16WebsiteClub website Home colours Away colours Third colours Current season Al Fayha FC (Arabic: نادي الفيحاء ...

 

1958 1967 Élections législatives de 1962 en Corse 3 sièges de députés à l'Assemblée nationale 18 et 25 novembre 1962 Corps électoral et résultats Inscrits 169 132 Votants au 1er tour 98 393   58,18 %  0,9 Votes exprimés au 1er tour 97 760 Votants au 2d tour 75 877   69,31 % Votes exprimés au 2d tour 75 272 Parti républicain, radical et radical-socialiste Voix au 1er tour 28 719 29,38 %   5 Voix au 2e tour...

 

EntelodontsRentang fosil: 45–20 jtyl PreЄ Є O S D C P T J K Pg N Eocene Tengah - Miocene Awal Gambar dari Entelodon Klasifikasi ilmiah Kerajaan: Animalia Filum: Chordata Kelas: Mammalia Ordo: Artiodactyla Subordo: Suina Superfamili: †Entelodontoidea Famili: †EntelodontidaeLydekker, 1883 Genera †Archaeotherium †Brachyhyops †Cypretherium †Daeodon †Entelodon †Eoentelodon †Paraentelodon †Proentelodon Sinonim Elotheridae Entelodontidae, kadang-kadang dipanggil Babi Ne...

Spanish football manager (born 1955) In this Spanish name, the first or paternal surname is Caparrós and the second or maternal family name is Camino. Joaquín Caparrós Caparrós in 2012Personal informationFull name Joaquín de Jesús Caparrós Camino[1]Date of birth (1955-10-15) 15 October 1955 (age 68)Place of birth Utrera, SpainHeight 1.76 m (5 ft 9 in)Youth career Real MadridSenior career*Years Team Apps (Gls) Plus Ultra Leganés Conquense Tarancón M...

 

Questa voce sull'argomento centri abitati dell'Illinois è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Blue Islandcity(EN) Blue Island, Illinois Blue Island – Veduta LocalizzazioneStato Stati Uniti Stato federato Illinois ConteaCook TerritorioCoordinate41°39′30″N 87°40′46″W / 41.658333°N 87.679444°W41.658333; -87.679444 (Blue Island)Coordinate: 41°39′30″N...

 

  「俄亥俄」重定向至此。关于其他用法,请见「俄亥俄 (消歧义)」。 俄亥俄州 美國联邦州State of Ohio 州旗州徽綽號:七葉果之州地图中高亮部分为俄亥俄州坐标:38°27'N-41°58'N, 80°32'W-84°49'W国家 美國加入聯邦1803年3月1日,在1953年8月7日追溯頒定(第17个加入联邦)首府哥倫布(及最大城市)政府 • 州长(英语:List of Governors of {{{Name}}}]]) •&...

Chemical compound SKF-38,393Identifiers IUPAC name 1-phenyl-2,3,4,5-tetrahydro-1H-3-benzazepine-7,8-diol CAS Number67287-49-4PubChem CID1242IUPHAR/BPS935ChemSpider1205UNIIR7TF327S2CChEBICHEBI:131793 YChEMBLChEMBL24077 YCompTox Dashboard (EPA)DTXSID10894836 Chemical and physical dataFormulaC16H17NO2Molar mass255.317 g·mol−13D model (JSmol)Interactive image SMILES C1CNCC(C2=CC(=C(C=C21)O)O)C3=CC=CC=C3 SKF-38393 is a synthetic compound of the benzazepine chemical class which ac...

 

يعد هداف الرابطة التونسية المحترفة الأولى لكرة القدم هو أكثر لاعب تسجيلا للأهدف في الموسم الرياضي الواحد من بطولة الرابطة التونسية المحترفة الأولى لكرة القدم و يعد الترجي الرياضي التونسي أكثر النوادي صاحب عدد كبير من الهدافين برصيد 61 موسم.[1] و يعد الزامبي كنيت ماليتو�...

 

Chinese cargo airline China Postal Airlines中国货运邮政航空公司 IATA ICAO Callsign CF CYZ CHINA POST Founded25 November 1996Commenced operations27 February 1997HubsNanjing Lukou Int'l AirportFleet size29HeadquartersBeijing, ChinaWebsitecnpostair.com China Postal Airlines (Chinese: 中国邮政航空, T: 中國郵政航空, P: Zhōngguó Yóuzhèng Hángkōng) is a cargo airline based in the Ziyu Office Building (紫玉写字楼; 紫玉 寫字樓; Zǐyù Xiězìlóu) in Haidian D...

1868 Florida gubernatorial election ← 1865 May 4, 1868 1872 →   Nominee Harrison Reed George W. Scott Samuel Walker Party Republican Democratic Radical Republican Popular vote 14,421 7,731 2,251 Percentage 59.10% 31.68% 9.22% County Results Reed   50–60%   60–70%   70–80%   80–90%   >90% Scott   50–60%   60–70%   70–80%   80–90% Walker   40–...

 

Island in St. Petersburg, Russia VasilyevskyNative name: Васильевский островAerial view of the spit of Vasilyevsky IslandVasilyevskyVasilyevsky Island within Saint PetersburgShow map of Saint PetersburgVasilyevskyVasilyevsky Island within RussiaShow map of European RussiaVasilyevskyVasilyevsky Island within EuropeShow map of EuropeGeographyLocationNeva Bay, Gulf of FinlandCoordinates59°56′N 30°16′E / 59.94°N 30.26°E / 59.94; 30.26Area19.3 ...

 

مسجد ومدرسة ألجاي اليوسفي بطاقة بريدية تظهر مدرسة ومسجد ألجاي اليوسفي مطلع القرن العشرين إحداثيات 30°3′29″N 31°13′44″E / 30.05806°N 31.22889°E / 30.05806; 31.22889 معلومات عامة الموقع القاهرة  القرية أو المدينة القاهرة الدولة  مصر سنة التأسيس العقد 1360  تاريخ بدء البناء 774ه�...

NBA professional basketball team season NBA professional basketball team season 1988–89 Portland Trail Blazers seasonHead coach Mike Schuler (fired) Rick Adelman General managerJon SpoelstraOwner(s)Paul AllenArenaMemorial ColiseumResultsRecord39–43 (.476)PlaceDivision: 5th (Pacific)Conference: 8th (Western)Playoff finishFirst round(lost to Lakers 0–3)Stats at Basketball-Reference.comLocal mediaTelevisionKOINRadioKEX(Bill Schonely, Steve Jones) < 1987–88 1989–90 ...

 

Medical conditionOpsismodysplasiaOther namesOPSMD [1]SpecialtyOrthopedic Opsismodysplasia is a type of skeletal dysplasia (a bone disease that interferes with bone development) first described by Zonana and associates in 1977, and designated under its current name by Maroteaux (1984). Derived from the Greek opsismos (late), the name opsismodysplasia describes a delay in bone maturation. In addition to this delay, the disorder is characterized by micromelia (short or undersized bones),...

 

Álvaro Rubio RoblesNazionalità Spagna Altezza178 cm Peso70 kg Calcio RuoloAllenatore (ex difensore) Squadra Real Valladolid (Ass. tecnico) Termine carriera2016 - giocatore CarrieraGiovanili  Real Saragozza Squadre di club1 1998-2001 Real Saragozza B61 (2)1999-2000 Real Saragozza0 (0)2000-2006 Albacete178 (0)2006-2016 Real Valladolid294 (8)2016 Bengaluru? (?) Nazionale 1999 Spagna U-201 (0)2000 Spagna U-211 (1) Carriera da allenatore 2017- Real Va...

Voce principale: FBI: Most Wanted. La terza stagione della serie televisiva FBI: Most Wanted, composta da 22 episodi, è stata trasmessa negli Stati Uniti d'America sul canale CBS dal 21 settembre 2021 al 17 maggio 2022.[1] In Italia i primi nove episodi sono stati trasmessi da Italia 1 dall'11 agosto all'8 settembre 2022, ogni giovedí in prima serata. Mentre i restanti episodi vanno in onda a partire dal 2 luglio al 6 agosto 2023, ogni domenica, in prima serata. nº Titolo original...

 

Eredivisie 2008-2009 Competizione Eredivisie Sport Calcio Edizione 53ª Organizzatore Federazione calcistica dei Paesi Bassi Date dal agosto 2008al maggio 2009 Luogo  Paesi Bassi Partecipanti 18 Risultati Vincitore AZ Alkmaar(2º titolo) Retrocessioni De GraafschapVolendam Statistiche Miglior marcatore Mounir El Hamdaoui (23) Cronologia della competizione 2007-2008 2009-2010 Manuale L'edizione 2008-2009 dell'Eredivisie è iniziata nel mese d'agosto 2008 e si è conclusa nel...