BaselineWatch
Desk

3.2.2 CHANGE REFERENCE DATA Card Command

NIST PIV and digital identity SP 800-73-4
All changes in this version
first version loaded 3 PIV Card Application Card Command Interface part of 3.2

Title

CHANGE REFERENCE DATA Card Command

Control

The CHANGE REFERENCE DATA card command initiates the comparison of the authentication data in the command data field with the current value of the reference data and, if this comparison is successful, replaces the reference data with new reference data.

Only reference data associated with key references '80' and '81' specific to the PIV Card Application (i.e., local key reference) and the Global PIN with key reference '00' may be changed by the PIV Card Application CHANGE REFERENCE DATA command. The PIV Card Application may allow the reference data associated with other key references to be changed by the PIV Card Application CHANGE REFERENCE DATA, if PIV Card Application will only perform the command with other key references if the requirements specified in Section 2.9.2 of FIPS 201-2 are satisfied. If any key reference value is specified that is not supported by the card, the PIV Card Application shall return the status word '6A 88'. Key reference '80' reference data shall be changed by the PIV Card Application CHANGE REFERENCE DATA command. The ability to change reference data associated with key references '81' and '00' using the PIV Card Application CHANGE REFERENCE DATA command is optional.

If key reference '81' is specified and the command is submitted over the contactless interface (including SM or VCI), then the card command shall fail. If key reference '00' or '80' is specified and the command is not submitted over either the contact interface or the VCI, then the card command shall fail. In each case, the security status and the retry counter of the key reference shall remain unchanged.

If the current value of the retry counter associated with the key reference is zero, then the reference data associated with the key reference shall not be changed and the PIV Card Application shall return the status word '69 83'. If the command is submitted over the contactless interface (VCI) and the current value of the retry counter associated with the key reference is at or below the issuer-specified intermediate retry value (see Section 3.2.1 ), then the reference data associated with the key reference shall not be changed and the PIV Card Application shall return the status word '69 83'.

If the authentication data in the command data field does not match the current value of the reference data or if either the authentication data or the new reference data in the command data field of the command does not satisfy the criteria in Section 2.4.3 , the PIV Card Application shall not change the reference data associated with the key reference and shall return either status word '6A 80' or '63 CX', with the following restrictions. If the authentication data in the command data field satisfies the criteria in Section 2.4.3 and matches the current value of the reference data, but the new reference data in the command data field of the command does not satisfy the criteria in Section 2.4.3 , the PIV Card Application shall return status word '6A 80'. If the authentication data in the command data field does not match the current value of the reference data, but both the authentication data and the new reference data in the command data field of the command satisfy the criteria in Section 2.4.3 , the PIV Card Application shall return status word '63 CX'. If status word '6A 80' is returned, the security status and retry counter associated with the key reference shall remain unchanged. 9 If status word '63 CX' is returned, the security status of the key reference shall be set to FALSE and the retry counter associated with the key reference shall be decremented by one.

If the card command succeeds, then the security status of the key reference shall be set to TRUE and the retry counter associated with the key reference shall be set to the reset retry value associated with the key reference.

The initial value of the retry counter and the reset retry value associated with the key reference, i.e., the number of successive failures (retries) before the retry counter associated with the key reference reaches zero, are issuer dependent.

Command Syntax

CLA '00' or '0C' for secure messaging INS '24' P1 '00' P2 '00' (Global PIN), '80' (PIV Card Application PIN), or '81' (PUK) L c '10'

Data Field Current PIN authentication data concatenated without delimitation with the new PIN reference data, both PINs as described in Section 2.4.3 L e Absent

'63' 'CX' Reference data change failed, X indicates the number of further allowed retries or resets '69' '82' Security status not satisfied '69' '83' Reference data change operation blocked '6A' '80' Incorrect parameter in command data field '6A' '81' Function not supported '6A' '88' Key reference not found