Verify_Memory_Code - ACS ACR3x mobile Reference Manual

Hide thumbs Also See for ACR3x mobile:
Table of Contents

Advertisement

8.8.6.

VERIFY_MEMORY_CODE

This command is used to submit Memory Code (4 bytes) to the inserted card. Memory Code is used
to authorize the reloading of the user memory, together with the User Code.
The following actions are executed:
1. Present the specified code to the card.
2. Search a '1' bit in the presentation error counter and write the bit to '0'.
3. Erase the presentation error counter. Please note that Memory Error Counter cannot be
erased.
Command Format
CLA
INS
FFh
20h
Where:
Error Counter LEN
Byte Address
CODE
Response Data Format
SW1
SW2
Where:
SW1 SW2
Note:
After SW1 SW2 = 90 00h has been received, read back the Application Area can check if
the VERIFY_MEMORY_CODE is correct. If all data in Application Area is erased and is equal to
"FFh," the previous verification is successful.
ACR3x – Reference Manual
Version 1.03
Pseudo-APDU
Error
Byte
Counter LEN
Address
40h
28h
Length of presentation error counter in bits
Byte address of the key in the card
4 bytes Memory Code
= 90 00h if no error
= 63 00h if there are no more retries
MEM_L
Byte
Byte 2
1
04h
CODE
Byte 3
Byte 4
Page 49 of 77
info@acs.com.hk
www.acs.com.hk

Advertisement

Table of Contents
loading

Table of Contents