Trouble reading AES enciphered data (DESFire EV1)

Forum / MIFARE general topics and applications / Trouble reading AES enciphered data (DESFire EV1)

  • 24. May 2019 at 15:03
    I'm having trouble reading enciphered data in an AES authenticated session. I'm able to select an application, succesfully authenticate and obtain my session key. However, reading data has ben unsuccesful so far.
    Using my implementation (an Android app written in Delphi) I'm able to reproduce the results of the example in table 24 of AN094534. However the first 16 bytes of the result in step 9 are garbage when I try to read from a real card, meaning the IV is wrong. Since I don't perform a write action first like in the example, I replaced step 4 of table 24 with step 9 of table 23.
    What am I doing wrong here?
    + 0  |  - 0

    Re: Trouble reading AES enciphered data (DESFire EV1)

    29. May 2019 at 8:26
    Hi Sander,

    The AN0945 is NDA classified material. Therefore, I cannot talk in detail about the content on a public forum. You can write to me directly at taplinx@nxp.com.

    Both examples work properly. You cannot change the order of the calculation steps. The IV is updated and used for the next CMAC or cryptographic operation. If you make a mistake, all following operations will also fail.

    The TapLinx team
    + 0  |  - 0

    Re: Trouble reading AES enciphered data (DESFire EV1)

    3. June 2019 at 9:58
    Hi,

    I sent and e-mail last wednesday. Can I expect a response this week?
    + 0  |  - 0

    Re: Trouble reading AES enciphered data (DESFire EV1)

    3. June 2019 at 10:05
    Hi Sander,

    Sorry, we had public holidays. We will answer as soon as possible.

    The TapLinx team

    + 0  |  - 0

    Re: Trouble reading AES enciphered data (DESFire EV1)

    3. June 2019 at 10:12
    Thanks! :)
    + 0  |  - 0
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.