beautypg.com

ACS ACR3801 Smart Card Reader User Manual

Page 49

background image

ACR3801 – Reference Manual

[email protected]

Version 2.01

www.acs.com.hk

Page 49 of 62

Step 1: Send Authentication Certificate to the Card
Command Format (abData field in the PC_to_RDR_XfrBlock)

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. Typical value is 160 clocks (A0)

BYTE 1...6

Card challenge data


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

61h

02h

Where:

SW1 SW2

= 61 02h if no error, meaning two bytes of authentication data are ready. The

authentication data can be retrieved by Get_Response command.


Step 2:
Get back the Authentication Data (Get_Response)
Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

P2

MEM_L

FFh

C0h 00h

00h

02h


Response Data Format (abData field in the RDR_to_PC_DataBlock)

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

Pseudo-APDU

CLA INS P1 P2 MEM_L

CODE

KEY CLK_CNT Byte 1 Byte 2 …… Byte 5 Byte 6

FFh

84h 00h 00h

08h