beautypg.com

ACS ACR38 SAM Smart Card Reader User Manual

Page 38

background image

ACR38x – Reference Manual

[email protected]

Version 6.02

www.acs.com.hk

Page 38 of 40


Response Data Format

SCardTransmit Receive Buffer

SW1

SW2

Where:

SW1 SW2 = 90 00h if no error.

9.2.2.7.4. AUTHENTICATE_MEMORY_CARD (SLE 4436, SLE 5536 and SLE 6636)

This command is used to read a card authentication certificate from an SLE 5536 or SLE 6636 card.

The following actions are executed by the ACR38x:
Select Key 1 or Key 2 in the card as specified in the command present the challenge data specified in

the command to the card generate the specified number of CLK pulses for each bit of authentication

data computed by the card read 16 bits of authentication data from the card reset the card to normal

operation mode
The ACR38x returns the 16 bits of authentication data calculated by the card in the response.
Command format

SCardTransmit Send Buffer

CLA

INS

P1

P2

MEM_L

CODE

KEY CLK_CNT Byte1 Byte 2 …… Byte 5 Byte 6

FFh

84h

00h

00h

08h

Where:

KEY

Key to be used for the computation of the authentication certificate:

00h: Key 1 with no cipher block chaining
01h: Key 2 with no cipher block chaining
80h: Key 1 with cipher block chaining (SLE 5536 and SLE 6636 only)
81h: Key 2 with cipher block chaining (SLE 5536 and SLE 6636 only)

CLK_CNT

Number of CLK pulses to be supplied to the card for the computation of each bit

of the authentication certificate.

BYTE 1...6

Card challenge data.


Response data format

SCardTransmit Receive Buffer

CERT

SW1

SW2

Where:

CERT

16 bits of authentication data computed by the card. The LSB of BYTE 1 is

the first authentication bit read from the card.

SW1 SW2

= 90 00h if no error.