Verify_password, Initialize_authentication – ACS ACR38 SAM Smart Card Reader User Manual
Page 27

ACR38x – Reference Manual
Version 6.02
www.acs.com.hk
Page 27 of 40
Response Buffer Format
SCardTransmit Receive Buffer
SW1
SW2
Where:
SW1 SW2 = 90 00h if no error.
9.2.2.4.3. VERIFY_PASSWORD
Send Buffer Format
SCardTransmit Send Buffer
CLA
INS
P1
P2
Lc (P3)
Data
FFh
20h
00h
00h
04h
RP
Pw(0)
Pw(1)
Pw(2)
Where:
Pw(0),Pw(1),Pw(2)
Passwords to be sent to memory card.
RP
= 0000 rp2p1p0b
where the four bits “rp2p1p0” indicate the password to compare:
r = 0: Write password
r = 1: Read password
p2p1p0: Password set number
(rp2p1p0 = 0111 for the secure code)
Response Buffer Format
SCardTransmit Receive Buffer
SW1
SW2
Where:
SW1 SW2 = 90 00h if no error.
9.2.2.4.4. INITIALIZE_AUTHENTICATION
Send Buffer Format
SCardTransmit Send Buffer
CLA
INS
P1
P2
Lc (P3) Q(0) Q(1) … Q(7)
FFh
84h
00h
00h
08h
Where:
Byte Address
Memory address location of the memory card.
Q(0),Q(1)…Q(7)
Host random number, 8 bytes.