Internal authenticate apdu – MagTek IntelliStripe65 99875161 User Manual

Page 113

Advertising
background image

Appendix B. Memory Card Support

107

Internal Authenticate APDU

The Internal Authenticate is used to authenticate the card to the hosting terminal.

Command APDU:

CLA

INS

P1

P2

Lc

Data

Le

D0

88

00

00

04

xx xx xx xx

01

CLA is always D0

INS is always 88

P1 is always 00
P2 is always 00
Lc gives the length of the data to be used as the Random Number in the Authentication
operation, its value must always be 4.
Data is the Random Number to be used in the Authentication operation.
Le gives the length of the expected reply, which is always 1.

Response APDU:

MAC (1 byte)

SW1 = 90

SW2 = 00

OR


SW1 = 67

SW2 = 00

If SW1/SW2 indicates normal completion (9000), the MAC field is 1 byte long and is the result
of the Authentication. If SW1/SW2 indicates a wrong length, the MAC is not included in the
message

Possible SW1/SW2 combinations:

SW1/SW2

Meaning

9000

Normal completion, no errors

6700

Wrong length, Lc does not equal 4 or Le does not equal 1


Advertising