MIFARE DESFire EV1 command set overview – security related commands
Security related commands
Command Description
Authenticate      MIFARE DESFire EV1 and the reader device show in an encrypted way that they possess the same secret which especially means the same key; this not only confirms that both entities are permitted to perform operations on each other but also creates a session key which can be used to keep the further communication path secure; as the name “session key” implicitly indicates, each time a new authentication procedure is successfully completed a new key for further cryptographic operations is generated
Change KeySettings changes the master key settings on MIFARE DESFire EV1 and application level
Set Configuration        configures the card and pre-personalizes the card with a key, defines if the UID or the random ID is sent back during communication setup and configures the ATS string
Change Key changes any key stored on the MIFARE DESFire EV1
Get Key Version reads out the current key version of any key stored on the MIFARE DESFire EV1
Remark: All command and data frames are exchanged between MIFARE DESFire EV1 and PCD by using block format as defined in ISO/IEC 14443-4.
   
   
MIFARE DESFire EV1 command set overview – MIFARE DESFire EV1 level commands
Level commands
Command Description
Create Application creates new applications on the MIFARE DESFire EV1
Delete Application permanently deactivates applications on the MIFARE DESFire EV1
Get Applications IDs returns the Application IDentifiers of all applications on a MIFARE DESFire EV1
Free Memory returns the free memory available on the card
GetDFNames returns the DF names
Get KeySettings          gets information on the MIFARE DESFire EV1 and application master key settings; in addition it returns the maximum number of keys which are configured for the selected application
Select Application selects one specific application for further access
FormatMF3ICD81 releases the MF3ICD81 user memory
Get Version returns manufacturing related data of the MIFARE DESFire EV1
GetCardUID      returns the UID
Remark: All command and data frames are exchanged between MIFARE DESFire EV1 and PCD by using block format as defined in ISO/IEC 14443-4.

 

MIFARE DESFire EV1 command set overview – application level commands
Application level commands
Command Description
Get FileIDs returns the File IDentifiers of all active files within the currently selected

application

Get FileSettings gets information on the properties of a specific file
Change FileSettings changes the access parameters of an existing file
Create StdDataFile creates files for the storage of plain unformatted user data within an

existing application on the MIFARE DESFire EV1

Create

BackupDataFile

creates files for the storage of plain unformatted user data within an

existing application on the MIFARE DESFire EV1, additionally supporting

the feature of an integrated backup mechanism

Create ValueFile creates files for the storage and manipulation of 32-bit signed integer

values within an existing application on the MIFARE DESFire EV1

Create

LinearRecordFile

creates files for multiple storage of similar structural data, for example,

loyalty programs within an existing application on the MIFARE DESFire

EV1; once the file is filled completely with data records, further writing to

the file is not possible unless it is cleared

Create

CyclicRecordFile

creates files for multiple storage of similar structural data, for example,

logging transactions within an existing application on the MIFARE DESFire

EV1; once the file is filled completely with data records, the MIFARE

DESFire EV1 automatically overwrites the oldest record with the latest

written one (this wrap is fully transparent for the PCD)

DeleteFile permanently deactivates a file within the file directory of the currently

selected application

Remark: All command and data frames are exchanged between MIFARE DESFire EV1

and PCD by using block format as defined in ISO/IEC 14443-4.

 
MIFARE DESFire EV1 command set overview – data manipulation commands
Data manipulation commands
Command Description
Read Data reads data from Standard Data files or Backup Data files
Write Data writes data to Standard Data files or Backup Data files
Get Value reads the currently stored value from Value files
Credit increases a value stored in a Value file
Debit decreases a value stored in a Value file
Limited Credit allows a limited increase of a value stored in a Value file without

having full Credit permissions to the file

Write Record writes data to a record in a Cyclic or Linear Record file
Read Records reads out a set of complete records from a Cyclic or Linear Record

file

Clear RecordFile resets a Cyclic or Linear Record file to empty state
Commit Transaction validates all previous write accesses on Backup Data files, Value

files and Record files within one application

Abort Transaction invalidates all previous write accesses on Backup Data files, Value

files and Record files within one application

Remark: All command and data frames are exchanged between MIFARE DESFire EV1

and PCD by using block format as defined in ISO/IEC 14443-4.

 

Abbreviations

ES Advanced Encryption Standard
AID Application IDentifier
APDU Application Protocol Data Unit
ATS Answer to Select
CC Common Criteria
CMAC Cryptic Message Authentication Code
CRC Cyclic Redundancy Check
DES Digital Encryption Standard
DF Dedicated File

 

EAL Evaluation Assurance Level
EEPROM Electrically Erasable Programmable Read-Only Memory
FWT Frame Waiting Time
ID IDentifier
INS Instructions
LCR inductance, Capacitance, Resistance

 

MAC Message Authentication Code
MAD MIFARE Application Directory
NV Non-Volatile Memory
PCD Proximity Coupling Device
PPS Protocol Parameter Selection
RATS Request Answer To Select
REQA Request Answer
RF Radio Frequency
UID Unique Identifier
WTX Waiting Time eXtension
WUPA Wake Up Protocol A

 

MF3ICD81 MIFARE DESFire EV1, document number: 13403**1.
MF3ICD81 Guidance, Delivery and Operation Manual, document number: 1469**.
MF3ICD81, document number: 1673**.
MF3ICD8101 Sawn bumped 120 m wafer addendum, document number: 1318**.
MF3ICDH8101 Sawn bumped 120 m wafer addendum, document number: 1970**.
MF3MODx21_41_81 Contactless chip card module, document number: 1439**.
MIFARE DESFire – Implementation hints and examples, document number: 0945**.
Card Coil Design Notes for MIFARE DESFire EV1, document number: 1713**.
MIFARE Application Directory, document number: 0018**.
MIFARE ISO/IEC 14443 PICC Selection, document number: 1308**.
End to end system security risk considerations for implementing contactless cards, document number: 1550**.
ISO/IEC Standard — ISO/IEC 14443 Identification cards – Contactless integrated circuit cards – Proximity cards.