11.12.3.4.75. Function Se05x_API_DFChangeKeyPart2¶
Defined in File se05x_APDU_apis.h
11.12.3.4.75.1. Function Documentation¶
-
smStatus_t
Se05x_API_DFChangeKeyPart2
(pSe05xSession_t session_ctx, const uint8_t *MAC, size_t MACLen, uint8_t *presult)¶ Se05x_API_DFChangeKeyPart2
The DFChangeKeyPart2 command verifies the MAC returned by ChangeKey or ChangeKeyEV2. Note that this function only needs to be called if a MAC is returned (which is not the case if the currently authenticated key is changed on the DESFire card).
Command to Applet
Field
Value
Description
CLA
0x80
INS
INS_CRYPTO
P1
P1_DEFAULT
See
SE05x_P1_t
P2
P2_CHANGE_KEY_PART2
See
SE05x_P2_t
Lc
#(Payload)
TLV[TAG_1]
MAC
Le
0x00
R-APDU Body
Value
Description
TLV[TAG_1]
1-byte
SE05x_Result_t
R-APDU Trailer
SW
Description
SW_NO_ERROR
The command is handled successfully.
- Parameters
[in] session_ctx
: Session Context [0:kSE05x_pSession][in] MAC
: MAC [1:kSE05x_TAG_1][in] MACLen
: Length of MAC[out] presult
: [0:kSE05x_TAG_1]