Using ISO7816 APDU style to select a file

Forum / MIFARE general topics and applications / Using ISO7816 APDU style to select a file

  • 17. December 2014 at 23:05
    I have a DESfire Ev1 version 1.3 card and I'm trying to select a file using ISO7816 apdu style.

    I have one file, with aid A0 A1 A2 and I can select it using both native or wrapped mode:

    -> 5A A0 A1 A2
    90 5A 00 00 03 A0 A1 A2 00
    00 A4 04 00 03 A0 A1 A2 00
    -> 6A 82

    When using ISO apdu, is the AID in a different format? How can I select this AID using it?
    + 0  |  - 0

    Re: Using ISO7816 APDU style to select a file

    20. January 2016 at 11:57
    Hi msramos,

    the exact APDU byte sequence depends from the used reader driver. Some reader drivers requires to put native commands in enveloping APDU commands. Please refer to the manual of your reader.

    For the MIFARE DESFire you have to select an application ID first, before you can have access to files residing in the application.
    With native commands you have this sequence:

      SelectApplication (3 byte AID)
      ReadData/WriteData etc (1 byte file ID, start offset, number of bytes to read/write)

    The application stay selected until an error occurs or you select another AID.

    Kind regards,
    The MIFARE Team

    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.