Questions tagged [desfire]

Mifare DESFire is a RFID Technology following the ISO14443-4 and has 13.56MHz. Its designed by NXP Semiconductors. For detailed information about how Mifare DESFire works, you need a NDA.

The protokoll depends on APDU´s. The cryptographic part of Mifare DESFire uses AES, DES, 3DES and 3DES3K, with max 14 Keys per Application.

Mifare DESFire is designed like a Filesystem using a root directory called PICC and underneath are Applications which contain Files. All Applications are addressable by Application-Id (AID), while Files do have Id´s. There are different file types like standart-data or backup-files.

12 questions
3
votes
1 answer

C# Crc32 implementation

I´ve got the following example: 3D020000000F0000112233445566778899AABBCCDDEEFF - Crc32 Input 280ACDA5 - Crc32 Result But with the following Calculators: sunshine2k and zorc.breitbandkatze I can´t reconstruct the result. The documentation says:…
Felix Arnold
  • 839
  • 7
  • 35
2
votes
1 answer

Mifare DESFire EV1 4K AES authentication issue

Please, can someone tell me what I'm doing wrong. I have to AES authenticate my card. The card is Mifare DESFire EV1 4K and the reader is Omnikey 5121. I followed some examples here on Stack but I always fail in the last step where card's rotated…
ZC10
  • 61
  • 6
0
votes
0 answers

Mifare DESFire on write to a Backup file COMMIT is failing

When writing to a Backup file in PLAIN communication mode the COMMIT command is failing. The Backup file is a 32 bytes long file on a Mifare DESFire EV3 tag: - File ID 0x03: Backup data, 32 bytes ~ Communication: plain ~ Read key: key #3 ~…
Michael Fehr
  • 5,827
  • 2
  • 19
  • 40
0
votes
0 answers

Mifare DESFire EV3 set of VC Configuration key fails with Integrity Error (0x1E / 30 dec)

I'm trying to set the VC (Virtual Card) Configuration key on a Mifare DESFire EV3 card. The VC Configuration key has the key number 0x20 (32 dec) as per AN12752 MIFARE DESFire EV3 feature and functionality comparison to other MIFARE DESFire…
Michael Fehr
  • 5,827
  • 2
  • 19
  • 40
0
votes
0 answers

Programming Desfire 8k EV1 smart card for use in public transporrtation

I have nfc tag cards of Desfire 8k EV1, which is nfc forum type4 The smart card also has three technologies: IsoDep, NfcA, and NdefFormatable. The card can accept read/write with it NdefFormatable without any initial setup by my hand. So I consider…
0
votes
0 answers

Create Standard Data File in Mifare Desfire EV3

What is the command format for the createStdDataFile (0xcd) for a Mifare Desfire EV3 ICC? I have no problem creating a data file with an EV1 ICC but with the new EV3 ICC, I get an APDU response of 91 9E. According to…
Paul
  • 652
  • 5
  • 16
0
votes
0 answers

Write data to Mifare Desfire

I'm trying to write a small image file to a mifare desfire card using an HID OMNIKEY 5427 reader The documentation mentions to communicate with the card using the below apdu command format: Wrapping of native MIFARE DESFire EV1 APDUs: CLA | INS …
0
votes
1 answer

Desfire Transaction File Creation Parameter Error

during the creation of a transaction mac file, at a Mifare Desfire Ev2 card, I receive an error. "com.nxp.nfclib.exceptions.PICCException: Parameter Error SW2 = -98" I am using the Taplinx libary, with the following transaction file settings: public…
eT4aa
  • 11
  • 4
0
votes
1 answer

JavaCard with DESFire emulation get Uid´s

I´ve got a JavaCard (SmartMX) with emulated DESFire EV2 and want to get both Uid´s from DESFire and JavaCard. Therefor I´ve found the following APDU command: 0xFF, 0xCA, 0x00, 0x00, 0x00 But only get the DESFire Uid. May someone tell how to…
Felix Arnold
  • 839
  • 7
  • 35
0
votes
1 answer

Decrypt DESFire ReadData Session

We´re struggeling with the decryption of DESFire Data. We´ve authenticated successfully and could decrypt RndA´ which was the same as the RndA we´ve created. Now we try to read an encyphered File from position 0 for 16 bytes. From some java library…
Felix Arnold
  • 839
  • 7
  • 35
0
votes
1 answer

Authenticate Mifare DESFire

I try to Authenticate on a Mifare DESFire chip via PC/SC. sofar I could select the Application but now I´m stuck at calculating the RndA_dec. I use his/her code And try to reconstruate the following example: *** Authenticate(KeyNo= 0, Key= 00 00…
Felix Arnold
  • 839
  • 7
  • 35
0
votes
1 answer

How to get Mifare DESFire file size

This question is with reference to the Mifare SDK TapLinx library usage. val fs = desFireEV2.getFileSettings(0) I can read the file's contents. But I need to know how to get the file's size. I am able to read the contents because I hardcoded the…
daparic
  • 3,794
  • 2
  • 36
  • 38