About Message Authentication Codes (MAC)
MACs for EMV Data
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>
<Nested TLV data objects specific to the message>
<Padding to force the 2-byte MSB message length plus F9 plus padding to be a multiple of 8 bytes>
<Four byte CBC-MAC of all data starting with the 2-byte MSB message length and ending with the last byte of padding (if any)>Last updated

