Gemplus gam375 memory card control – MagTek IntelliStripe65 99875161 User Manual
Page 108

IntelliStripe 65 Command Reference
102
In the Authentication operation a value called M is used. This value is specified by agreement
with Gemplus. The user has control over this value via the GAM326 value of M property
Command APDU:
CLA
INS
P1
P2
Lc
Data
Le
D0
88
CBC / Address
Address
06
xx xx xx xx xx xx 02
CLA is always D0
INS is always 88
P1 gives an indication of Cipher Block Chaining and the upper bits of the bit address to
be used to start the Authentication operation:
Bits
Usage
0
CBC indication, 0 = no CBC, 1 = CBC
1-7
Address bits
P2 is the low order byte of the bit address used to start the Authentication operation.
Lc gives the length of the data to be used as the Random Number in the Authentication
operation, its value must always be 6.
Data is the Random Number to be used in the Authentication operation.
Le gives the length of the expected reply, which is always 2.
Response APDU:
MAC (2 bytes)
SW1 = 90
SW2 = 00
OR
SW1 = 67
SW2 = 00
If SW1/SW2 indicates normal completion (9000), the MAC field is 2 bytes 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 6 or Le does not equal 2
GEMPLUS GAM375 MEMORY CARD CONTROL.
This section defines the commands needed to control the Gemplus GAM375 card type. There
may be other cards that are similar to the GAM375, and this device may support some of them.
It is assumed that the user has access to the manufacturer’s specifications for this type of card.
This section will address the memory available on the card as a file. For compatibility of
terminology with ISO 7816-4, we will assume that the memory is in an “implicitly selected” file
after we power up the card.