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

Page 28

Advertising
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<len> /* container for MAC structure and generic data */

DFDF54(MAC KSN)<len><val>

DFDF55(MAC Encryption Type)<len><val>

DFDF25(IFD Serial Number)<len><val>

FA<len>/* container for generic data */

F0<len> /* Transaction Results */

F1<len> /* container for Status Data */

… /* Status Data tags */

F8<len> /* container tag for encryption */

DFDF59(Encrypted Data Primative)<len><Encrypted

Data val (Decrypt data to read tags)>

DFDF56(Encrypted Transaction Data KSN)<len><val>

DFDF57(Encrypted Transaction Data Encryption

Type)<val>

DFDF58(# of bytes of padding in DFDF59)<len><val>

F7<len>/* 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<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 */


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

Advertising