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

10. November 2020 at 9:40
I found out what my problem was.

I was authenticating with KeyType.THREEDES, but the card was configured for KeyType.TWO_KEY_THREEDES.

The key was correct, which is why authentication succeeded, but when the API proceeded with MACed communication, it would fail. Once I updated the key type during authentication, it worked as expected.
+ 0  |  - 0