Present_code_memory_card – ACS ACR38K Smart Keyboard User Manual

Page 44

Advertising
background image

ACR38x (CCID) – Reference Manual

[email protected]

Version 6.04

www.acs.com.hk

Page 44 of 58

9.3.7.4. PRESENT_CODE_MEMORY_CARD

To submit the secret code to the memory card to enable the card personalization mode, the following

actions are executed:

1. Search a '1' bit in the presentation counter and write the bit to '0'.
2. Present the specified code to the card.

The ACR38x (CCID) does not try to erase the presentation counter after the code submission. This

must be done by the application software through a separate ‘Write with carry' command.
Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

P2

MEM_L

CODE

ADDR Byte 1 Byte 2 Byte 3

FFh

20h

00h

00h

04h

09h

Where:

ADDR

Byte address of the presentation counter in the card

CODE

Three bytes secret code (PIN)


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

Where:

SW1 SW2 = 90 00h if no error

9.3.7.5. AUTHENTICATE_MEMORY_CARD (SLE 4436, SLE 5536 and SLE

6636)

To read a card authentication certificate from a SLE 5536 or SLE 6636 card, the ACR38x (CCID)

executes the following actions:

1. Select Key 1 or Key 2 in the card as specified in the command.
2. Present the challenge data specified in the command to the card.
3. Generate the specified number of CLK pulses for each bit of authentication data computed by

the card.

4. Read 16 bits of authentication data from the card.
5. Reset the card to normal operation mode.

The authentication has to be performed in two steps. The first step is to send the Authentication

Certificate to the card. The second step is to get back two bytes of authentication data calculated by

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

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

Advertising