9.4.9.1 Functional

Figure 9-7. Verify Command Functional Description

Read password indices: $10 to $17 for passwords 0 to 7.

Write password indices: $00 to $07 for passwords 0 to 7.

Secure code index: $07 (equivalent to Write 7 password).

Four password index bits, “r” and “ppp,” indicate the password to compare:

  • r = 0: Write password
  • r = 1: Read password
  • p2p1p0: Password set number
Table 9-14. Verify Password

Verify Password

Data Sent

CLA

INS : Command

P1

P2

P3

PW1

PW2

PW3

**

$BA

000r 0p2p1p0

**

$30

d7--- ---d0

d15--- ---d8

d23--- ---d16

If the maximum number of trials has been exceeded, the device will return $69 $00 instead of the INS code, after receiving the header, to indicate that the command is unauthorized. To prevent replay attacks, the device decrements the Associated Attempts Counter before verifying the password. If the password is correct, the device memorizes this success, clears the attempts counter and returns $90 $00. If the password is incorrect, the device simply returns $69 $00 after decrementing the attempts counter. The Write 7 password is also known as the secure code and must be properly presented before write access to the configuration memory is granted when personalizing the device.