A C R 3 8 S m a r t C a r d R e a d e r / W r i t e r
Pw(0),Pw(1),Pw(2)
Passwords to be sent to memory card.
P2
= 0000 00rp
b
where the two bits “rp” indicate the password to compare
r = 0 : Write password,
r = 1: Read password,
p: Password set number,
rp = 01 for the secure code.
Response data format
Header
Status
Data length
SW1
SW2
LEN
01
H
SW1, SW2
= 90
H
00
H
if no error
INITIALIZE_AUTHENTICATION
Command format
Header
Instruction
Data length
Data
LEN
CLA
INS
P1
P2
Lc
Q(0)
Q(1)
…
Q(7)
01
H
A0
H
00
H
0D
H
FF
H
84
H
00
H
00
H
08
H
Q(0),Q(1)…Q(7)
Host random number, 8 bytes.
Response data format
Header
Status
Data length
SW1
SW2
LEN
01
H
SW1, SW2
= 90
H
00
H
if no error
VERIFY_AUTHENTICATION
Command format
Header
Instruction
Data length
Data
LEN
CLA
INS
P1
P2
Lc
Ch(0) Ch(1)
…
Ch(7)
01
H
A0
H
00
H
0D
H
FF
H
82
H
00
H
00
H
08
H
Ch(0),Ch(1)…Ch(7)
Host challenge, 8 bytes.
Response data format
Header
Status
Data length
SW1
SW2
LEN
01
H
SW1, SW2
= 90
H
00
H
if no error
ACR38 Reference Manual
Version 2.2 January 2008
Page
24
of 44