Forum Replies Created

  • Re: Reply To: Mifare DESFIRE EV1 CMAC Calculation

    25. January 2019 at 10:29
    in reply to: Mifare DESFIRE EV1 CMAC Calculation
    Hello,

    Thanks for your interest. I controlled my project and edited CMAC algorithm. Now I get same result with AN094534 document and table 24. Now I trying to calculate CMAC of read command. There is a question here. I use APDU command for read tag.

    File = 00
    Offset = 000000
    Length of data to read = 0A0000 (10 byte)

    So according to table 24. my read command must be this
    BD000000000A0000

    but my APDU frame is
    90 BD 00 00
    0x07
    000000000A0000
    00

    So which command should I use in CMAC algorithm?
    CMAC(BD000000000A0000) or CMAC(90BD000007000000000A000000)

    Best Regards.


    + 0  |  - 0

    Re: Reply To: Mifare DESFIRE EV1 CMAC Calculation

    8. January 2019 at 10:56
    in reply to: Mifare DESFIRE EV1 CMAC Calculation
    Hello,

    Thank you for your interest. For a quick solution I create a demo in C# for this situation. It's include sample test vectors and algorithm for CMAC. You can get this demo from here. I notice IV vectors is different of normal CMAC algorithms. So I modified this CMAC for this situation. But still I get different result according to document AN094534. Could you give me advice for this problem? Is there any other document explain that CMAC algoritm for Mifare?

    Best Regards
    + 0  |  - 0

    Re: Reply To: Mifare Desfire EV1 Authentication Error

    28. September 2018 at 14:59
    in reply to: Mifare Desfire EV1 Authentication Error
    Hello,

    Thank you for your answer.

    I am aware that this process consists of multiple steps. But I get an error in the authentication command, which is the first step.

    Can you recommend a document that can help me in this section? (I'm glad to if you tell how can I to get this document?)

    Regards.
    + 0  |  - 0

    Re: Reply To: Mifare Desfire EV1 Authentication Error

    28. September 2018 at 10:27
    in reply to: Mifare Desfire EV1 Authentication Error
    Hello,

    Thank you for your answer.
    I used the following blog post and the attached document for this study.

    Blog
    <a href="https://ridrix.wordpress.com/2009/09/19/mifare-desfire-communication-example/">Mifare Desfire communication example</a>
    https://stackoverflow.com/questions/19589534/android-nfc-communication-with-mifare-desfire-ev1

    Document
    http://www.ti.com/lit/an/sloa213/sloa213.pdf

    I am aware that this process consists of multiple steps. But I get an error in the authentication command, which is the first step.

    Can you recommend a document that can help me in this section? (I'm glad to if you tell how can I to get this document?)

    Regards.
    + 0  |  - 0
Viewing 4 posts - 1 through 4 (of 4 total)