Forum › MIFARE general topics and applications › Switch from DES to AES authentication › Reply To: Switch from DES to AES authentication
Hi,
Can you please be a bit more specific? What card do you have?
In my experience you can switch from DES to AES in this way (speaking for a DESFire EV1 card here):
1- Authenticate with the DES key (supposing you already know the key), (APDU: 0x90 [CLA], 0x0A or 0x1A [INS], 0x00 [P1], 0x00 [P2], 0x01 [Lc], 0x00 [KeyNo], 0x00 [Le]).
2- Change the key Settings to AES mode, (for this check MF3ICD81 MIFARE DESFire EV1 Product Data Sheet p.43 - is Company Confidential under NDA). The command INS or cmd should be 0xC4 and for AES you should write 0x10 I guess.
3- then you should be able to authenticate using the 0xAA command.
Kind regards,
Adnan
Can you please be a bit more specific? What card do you have?
In my experience you can switch from DES to AES in this way (speaking for a DESFire EV1 card here):
1- Authenticate with the DES key (supposing you already know the key), (APDU: 0x90 [CLA], 0x0A or 0x1A [INS], 0x00 [P1], 0x00 [P2], 0x01 [Lc], 0x00 [KeyNo], 0x00 [Le]).
2- Change the key Settings to AES mode, (for this check MF3ICD81 MIFARE DESFire EV1 Product Data Sheet p.43 - is Company Confidential under NDA). The command INS or cmd should be 0xC4 and for AES you should write 0x10 I guess.
3- then you should be able to authenticate using the 0xAA command.
Kind regards,
Adnan
+ 0
|
- 0