Reply To: DESFire EV1 Invalid MAC SecurityException

Forum MIFARE SDK DESFire EV1 Invalid MAC SecurityException Reply To: DESFire EV1 Invalid MAC SecurityException

Re: DESFire EV1 Invalid MAC SecurityException

28. July 2020 at 10:19
Hi Petar,

If the read permission is 0x01, application key #1 must be used. From the previous code snippet I see that you immediately read after the authentication. That is fine. Your code snippet looks good, I do not see an error.

One remark: you use readData( 0, 0, 0, <comm type>, len ). Here is fileID = 0, offset = 0 and length = 0. Length = 0 means entire file. You should only read the bytes you are really need. Take in mind, reading and writing via NFC device is costly and takes performance.

The TapLinx team

+ 0  |  - 0