Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Forum MIFARE SDK Trying to read DESFire EV1 Card, requires Authentication. Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Re: Trying to read DESFire EV1 Card, requires Authentication.

17. May 2016 at 23:50
Hi,

I just want to say here, that formatKeyEntry and setKey has NOTHING to do with the PICC (Card)!
When you create an application on DESFire and you specify that the application will have for example 5 keys AES. The card saves 5 AES keys with all 0's on it.

KeyStore is a SOFTWARE part. You use it just to store the keys temporary for easier access (via keyNumber).

If you want to apply changes to the card, do it after personalization. Then you need to call command changeKey(). Now, this will infact change the key on the card with they key in the KeyStore.


Also to your previous post:
Make sure that once you used formatKeyEntry() you also used the same slot (keyNo) and the same AuthType(AES) as in the setKey() method.

A bit confusing, but I hope you understand.
+ 0  |  - 0