MAC MSR DUKPT variant?

I am currently working on decrypting a ChipCard EMV device. Below is the relevant data I got after using the transaction (TLV format as tag length value):

<DFDF54> --- It means KSN
0A
950003000005282005B4 


<DFDF59>---- per instruction, it is called Encrypted Data Primative
82      ---- length of value in hex, when more than 255 degits, use 82
00D815F35E7846BF4F34E56D7A42E9D24A59CDDF8C3D565CD3D42A341D4AD84B0B7DBFC02DE72A57770D4F795FAB2CE3A1F253F22E0A8BA8E36FA3EA38EE8C95FEBA3767CDE0D3FBB6741A47BE6734046B8CBFB6044C6EE5F98C9DABCD47BC3FD371F777E7E1DCFA16EE5718FKLIOE51A749C7ECC736CB7780AC39DE062DAACC318219E9AAA26E3C2CE28B82C8D22178DA9CCAE6BBA20AC79AB985FF13611FE80E26C34D27E674C63CAC1933E3F9B1BE319A5D12D16561C334F931A5E619243AF398D9636B0A8DC2ED5C6D1C7C795C00D083C08953BC8679C60

      

I know the BDK is for this device 0123456789ABCDEFFEDCBA9876543210

. In the decryption instructions, he mentioned that DFDF59 contains the following tags:

FC<len>/* container for encrypted generic data */
    F2<len>/*container for Batch Data*/
           ... /*Batch Data tags*/
    F3<len>/*container for Reversal Data, if any*/
           ... /*Reversal Data tags*/

      

The instructions mentioned " MAC MSR DUKPT variant ", where MAC stands for message authentication code, and " Parse data using TLV format. For encrypted data tag, use TDES_Decrypt_CBC to decrypt it .

I tried 3DES DUKPT using KSN, BDK and DFDF59 encrypted data. It won't work. Can anyone in the field of decryption give me some advice? Our supplier is very reluctant to share his knowledge ...

I have no idea how MAC actually plays a role in decryption here .... I thought MAC was just an integrity check .... I am using the session key for 3DES DUKPT which was generated from KSN and BDK. this works for other decryptions in this device, but does not solve DFDF59 (EMV Chip Card Decryption) .... This is why I am starting to wonder if I am using the correct session key or not ... Feel free to just drop ideas there. Thank!

+3


source to share





All Articles