Reply To: Cannot ChangeKey, Get 1E response.

Forum MIFARE SDK Cannot ChangeKey, Get 1E response. Reply To: Cannot ChangeKey, Get 1E response.

Re: Cannot ChangeKey, Get 1E response.

16. March 2016 at 10:28
I'm not sure I follow. There is a Card Master Key (CMK) and a Application Master Key (AMK) which have default valuers of all zeros. I want to change these using ChangeKey command. According to the documentation I have this is done by decrypting with the session key:

In case the KeyNo used for authentication is the SAME as the KeyNo to be changed or if ChangeKey
Key is set to 0xE, the PCD needs to generate the data frame “deciphered key data” in the following way:
A CRC (2 bytes) is calculated over the new key data (16 bytes) and appended at the end. After this padding
of zeros (6 bytes) is applied to reach an adequate frame size of multiples of 8 (24 byte overall). Finally a
DES/3DES deciphering operation (using the current session key) is performed on the whole key data field.
The three cryptogram blocks are chained using the CBC send mode.

The problem is I can't get it to work, I get the error response 1E.

Regards,

Warren
+ 0  |  - 0