beautypg.com

2 sred batch data, Sred batch data, 3 - command set – MagTek DynaPro Mini Programmer's99875629 User Manual

Page 28

background image

3 - Command Set

DynaPro Mini| PIN Encryption Device | Programmer’s Reference (Commands)


Page 28

CBC-MAC (4 bytes, use MAC variant of MSR DUKPT key)

3.3.3.2 SRED Batch Data

Begin with a two-byte header in big-endian form (MSB first) that contains the expected length of the
message after decryption, excluding data padding and CBC-MAC. Use container F9 for the MAC
structure, use F8 within FA for passing encrypted batch data message, use MAC variant of MSR DUKPT
key.
AAAA /* 2-byte MSB message length excluding padding and CBC-MAC */
F9 /* container for MAC structure and generic data */

DFDF54(MAC KSN)

DFDF55(MAC Encryption Type)

DFDF25(IFD Serial Number)

FA/* container for generic data */

F0 /* Transaction Results */

F1 /* container for Status Data */

… /* Status Data tags */

F8 /* container tag for encryption */

DFDF59(Encrypted Data Primative)

Data val (Decrypt data to read tags)>

DFDF56(Encrypted Transaction Data KSN)

DFDF57(Encrypted Transaction Data Encryption

Type)

DFDF58(# of bytes of padding in DFDF59)

F7/* container for Merchant Data */

… /* < Merhcant Data tags */

(Buffer if any to be a multiple of 8 bytes)
CBC-MAC (4 bytes, use MAC variant of MSR DUKPT key)


The Value inside tag DFDF59 is encrypted and contains the following after decryption:

FC/* container for encrypted generic data */

F2/* container for Batch Data */

… /* Batch Data tags */

F3/* container for Reversal Data, if any */

… /* Reversal Data tags */


Notes:
1 - ARQC request encrypted message: 70 F8
2 - Batch data includes batch and merchant data and for declined transactions, reversal data as well.