107 ETSI TS 102 221 V17.1.
0 (2022-02)
Input:
• PIN.
Output:
• None.
11.1.12.2 Command parameters
Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 '00'
P2 As specified for the VERIFY PIN command, see clause 11.1.9
Lc Length of the subsequent data = '08'
Data PIN value
Le Not present
Command data:
Byte(s) Description Length
1 to 8 PIN value 8
11.1.13 UNBLOCK PIN
11.1.13.1 Functional description
11.1.13.1.1 PIN unblocking
This function is used to reset the PIN retry counter to its initial value and then to conditionally set a new PIN value.
This function may be performed whether or not the relevant PIN is blocked (e.g. by 3 consecutive wrong PIN
presentations). This unblocking process is subject to the following condition being fulfilled:
• UNBLOCK PIN is not blocked.
If the UNBLOCK PIN presented is correct, the value of the PIN, presented together with the UNBLOCK PIN, is
assigned to that PIN, the number of remaining UNBLOCK PIN attempts for that UNBLOCK PIN is reset to its initial
value 10 and the number of remaining PIN attempts for that PIN is reset to its initial value 3. After a successful
unblocking attempt the PIN is enabled and the relevant access condition level is satisfied the new PIN value is available
for all channels.
If the presented UNBLOCK PIN is false, the number of remaining UNBLOCK PIN attempts for that UNBLOCK PIN,
regardless on which logical channel the UNBLOCK PIN command was issued, shall be decremented. The UICC shall
return SW1 SW2 = '63C9', '63C8', …, '63C1' for up to the ninth consecutive false UNBLOCK PIN presentation, not
necessarily in the same card session. After the tenth consecutive false UNBLOCK PIN presentation, not necessarily in
the same card session, the respective UNBLOCK PIN shall be blocked and the UICC shall return SW1 SW2 = '63C0'.
Any subsequent UNBLOCK PIN command applied to this blocked UNBLOCK PIN shall then return
SW1 SW2 = '6983'. A false UNBLOCK PIN shall have no effect on the status of the respective PIN itself.
Input:
• Indication PIN, the UNBLOCK PIN and the new PIN.
Output:
• None.
ETSI
108 ETSI TS 102 221 V17.1.0 (2022-02)
11.1.13.1.2 UNBLOCK PIN retry counter
The UNBLOCK PIN command with empty data field is used to retrieve the UNBLOCK PIN retry counter from the
UICC. This function may be performed whether or not the relevant PIN is blocked (e.g. by 3 consecutive wrong PIN
presentations) and whether or not the UNBLOCK PIN is blocked.
The UNBLOCK PIN command is sent to the UICC with parameter P2 indicating the PIN for which the UNBLOCK
PIN retry counter value is to be retrieved with an empty data field. The number of retries, if any, is indicated in the
response by SW1 SW2 ='63CX', where X indicates the number of retries left.
An UNBLOCK PIN command with empty data field applied to a blocked UNBLOCK PIN shall return
SW1 SW2 = '63C0' or SW1 SW2 = '6983'.
Input:
• Empty.
Output:
• None.
11.1.13.2 Void
11.1.13.3 Command parameters
Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 '00'
P2 As specified for the VERIFY PIN command (see clause 11.1.9)
Lc Empty or '10'
Data Empty or UNBLOCK PIN value, new PIN value
Le Not present
Command data:
Byte(s) Description Length
1 to 8 UNBLOCK PIN value 8
9 to 16 New PIN value 8
11.1.14 DEACTIVATE FILE
11.1.14.1 Functional description
This function initiates a reversible deactivation of an EF. After a DEACTIVATE FILE function the respective flag in
the file LCSI_DO shall be changed accordingly. This function shall only be performed if the DEACTIVATE FILE
access condition for the EF is satisfied.
In case of successful execution of the command, the EF on which the command was applied becomes the current EF.
After an unsuccessful execution, the current EF and current DF shall remain the same as prior to the execution.
The availability of a deactivated file depends on the "Special File Information (File Status Byte)" byte in the CREATE
FILE command (see table 5 of ETSI TS 102 222 [32]) which was used to create the file:
• if the "Special File Information (File Status Byte)" was not present in the CREATE FILE command or if it was
present with b7 set to 0, a deactivated file shall no longer be available within the selected application for any
function except for the SELECT and the ACTIVATE FILE functions;
• if the "Special File Information (File Status Byte)" was present in the CREATE FILE command with b7 set to
1, the file is readable and updatable when deactivated.
ETSI
109 ETSI TS 102 221 V17.1.0 (2022-02)
Input:
• File ID, path or empty.
Output:
• None.
11.1.14.2 Command parameters
Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 selection control, see table 11.17
P2 00
Lc Length of subsequent data field or empty
Data File ID or path to file, according to P1
Le Not present
Table 11.17: Coding of P1
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
0 0 0 0 0 0 0 0 Select EF by file id
0 0 0 0 1 0 0 0 Select by path from MF
0 0 0 0 1 0 0 1 Select by path from current DF
NOTE: All other values are RFU.
If P1 = P2 = '00' and the data field is empty, then the command applies on the current EF.
11.1.15 ACTIVATE FILE
11.1.15.1 Functional description
This function reactivates a deactivated EF. After an ACTIVATE FILE function the respective flag in the file LCSI_DO
shall be changed accordingly. This function shall only be performed if the ACTIVATE FILE access condition for the
EF is satisfied.
In case of successful execution of the command, the EF on which the command was applied becomes the current EF.
After an unsuccessful execution, the current EF and current DF shall remain the same as prior the execution.
Input:
• File ID, path or empty.
Output:
• None.
11.1.15.2 Command parameters
Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 As specified for the DEACTIVATE command (see clause 11.1.14.2)
P2 00
Lc Length of subsequent data field or empty
Data File ID or path to file, according to P1
Le Not present
ETSI