Erase_application_zone_with_write_and_erase – ACS ACR33U-A1 SmartDuo Smart Card Reader User Manual
Page 57
ACR33U-A1 – Reference Manual
Version 1.02
www.acs.com.hk
Page 57 of 60
correct value
CODE:
N bytes of Erase Key
Response data format (abData field in the RDR_to_PC_DataBlock)
SW1 SW2
Where:
SW1, SW2 = 90 00h if no error
Note: After SW1SW2 = 0x9000h has been received, read back the data in Application Zone can
check whether the ERASE_APPLICATION_ZONE_WITH_ERASE is correct. If all data in
Application Zone is erased and equals to “0xFFh”, the previous verification is success.
8.3.8.6. ERASE_APPLICATION_ZONE_WITH_WRITE_AND_ERASE
This command can be used in the following cases:
•
AT88SC101: To erase the data in Application Zone with EC Function Enabled
•
AT88SC102: To erase the data in Application Zone 2 with EC2 Function Enabled
•
AT88SC1003: To erase the data in Application Zone 2 with EC2 Function Enabled
With EC or EC2 Function Enabled (that is, ECEN or EC2EN Fuse is undamaged and in “1” state), the
following actions are executed:
•
Present the specified code to the card
•
Search a '1' bit in the presentation error counter and write the bit to '0'
•
Erase the presentation error counter. The data in corresponding Application Zone can be
erased when the submitted code is correct.
Command format (abData field in the PC_to_RDR_XfrBlock)
Pseudo-APDU
CLA INS Error Counter LEN Byte Address MEM_L
CODE
Byte 1 Byte 2 Byte 3 Byte 4
FFh 20h
80h
04h
Where:
Error Counter LEN: Length of presentation error counter in bits. The value should be
0x80h always.
Byte Address:
Byte address of the Application Zone Key in the card.
Byte Address
AT88SC101
96h
AT88SC102
9Ch
AT88SC1003
5Ch
CODE:
4 bytes Erase Key