Desfire EV1 internal authenticate only

Forum / MIFARE SmartCard IC`s / Desfire EV1 internal authenticate only

  • 21. October 2014 at 20:53
    Hi all,

    We are working with a DESFire EV1 card. We can do an authentication using the ISO 7816-4 INS commands supported by it.
    Below you can see that the authentication (both external and internal) works perfectly.

    The question is, we want to do only an INTERNAL_AUTHENTICATE because we just need to be sure the card is a valid one. How can we do this??

    The problem is when we send only the internal INTERNAL_AUTHENTICATE as described below (without issuing the GET_CHALLENGE and EXTERNAL_AUTHENTICATE) the card responds with the following:

    ONLY INTERNAL_AUTHENTICATE
    APDUC - > 90 5A 00 00 03 13 13 13 00 (Select application 0x131313)...
    APDUR 00 88 09 82 10 11 12 13 14 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 20 (INTERNAL_AUTHENTICATE)...
    APDUR 00 A4 04 00 07 D2 76 00 00 85 01 00 (Select MF (PICC) file (ISO 7816-4). P1=04 means directory selection)...
    APDUR 90 60 00 00 00 (Get version (wrapped as ISO 7816-4))...
    APDUR 90 AF 00 00 00 (Getting additional frame)...
    APDUR 90 AF 00 00 00 (Getting additional frame)...
    APDUR 90 45 00 00 00 (Get (PICC master) key settings (wrapped))...
    APDUR 90 6A 00 00 00 (Get application ids (wrapped as ISO 7816-4))...
    APDUR 90 5A 00 00 03 13 13 13 00 (Select application 0x131313)...
    APDUR 90 45 00 00 00 (Get (AMK) key settings (wrapped))...
    APDUR 00 84 00 00 10 (GET_CHALLENGE)...
    APDUR 00 82 09 82 20 78 13 8A FE 23 E2 73 0A 25 EC D4 D1 ED 55 2A 20 F0 F9 D9 5A 31 09 01 2E 28 BA FA CE D9 37 B4 16 (EXERNAL_AUTHENTICATE)...
    APDUR 00 88 09 82 10 11 12 13 14 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 20 (INTERNAL_AUTHENTICATE)...
    APDUR < - 35 84 4F BF FF CC 9A 2F 36 CF B3 0C 80 63 28 EC A2 48 49 0A 64 5F 15 04 5D B3 33 A2 5E D1 27 BC 90 00

    Thank you very much for you help in advance!

    Best regards,
    + 0  |  - 0

    Re: Desfire EV1 internal authenticate only

    4. December 2014 at 14:15

    tie
    APDUC - > 00 82 09 82 20 78 13 8A FE 23 E2 73 0A 25 EC D4 D1 ED 55 2A 20 F0 F9 D9 5A 31 09 01 2E 28 BA FA CE D9 37 B4 16 (EXERNAL_AUTHENTICATE)...
    APDUR < - 90 00
    can you tell me how do you know the third and fourth byte are "09 82",and "09" means which algorithm ? and "82" is how to compute?
    + 0  |  - 0

    Re: Desfire EV1 internal authenticate only

    22. April 2015 at 9:33
    I am using Mifare Desfire EV1(MF31CD21) type 4 tag. I have to implement authentication mechanism using Mifare Desfire tag. Can anybody tell list of commands and steps to follow for authentication.


    Regards,
    Kerry
    + 0  |  - 0
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.