DESFire card module. This is an add-on library for SmartCardAPI. It supports NXP DESFire EV1/2/3 cards on contactless, PC/SC connected card readers. Cryptographic operations that are required for mutual authentication with the card under TDES or AES keys are implemented in software.

Namespace: CardWerk.SmartCard.CardModule.DESFire
Assembly: CardWerk.SmartCard.CardModule.DESFire (in CardWerk.SmartCard.CardModule.DESFire.dll)

Public Class DESFireCard 
Inherits CardModuleBase
This language is not supported or no code example is available.
public class DESFireCard : CardModuleBase
This language is not supported or no code example is available.
public ref class DESFireCard : public CardModuleBase^
This language is not supported or no code example is available.
public class DESFireCard 
extends CardModuleBase
This language is not supported or no code example is available.
Name Description
Public constructor DESFireCard(CardHandle) Constructor.
Top
Name Description
Public property Version
Top
Name Description
Public method Authenticate(int, byte[]) Full authentication sequence using TDES-based mutual authentication and session key calculation according to NXP DESFire EV1 card edge specification.
Public method AuthenticateAES(int, byte[]) Full authentication sequence according to NXP DESFire EV1 specifications.
Public method ChangeKey(int, int, byte[], byte[]) Changes a card key.
Public method ChangeKeySettings(byte) This command changes the master key configuration settings of the selected application.
Public method CreateApplication(int, byte, byte) Ceate a card application without any ISO ID or DfName. NOTE: It is not possible to change the key type after creating an application.
Public method CreateApplication(int, byte, byte, int, byte[]) Creates a new application on the PICC.
Public method CreateFile(int, int, DESFireCardFileSettings) Central, generic method to create files.
Public method CreateValueFile(int, DESFireCardFileSettings) Creates value file
Public method Credit(int, int) Credits a value.
Public method Debit(int, int) Debits a value.
Public method DeleteApplication(int) Deletes the application described by aid.
Public method DeleteFile(int) Deletes a file within an application
Public method FormatPICC() Formats DESFire card/ This operation deletes all applications and releases all user memory.
Public method GetApplicationIDs() Returns application IDs of all active applications.
Public method GetCardUID() Reads the chip-level card serial number. This is a 7-byte value that is unique for each card.
Public method GetFileIDs() Returns file IDs of all active files within the currently selected application.
Public method GetFileSettings(int) Explore communication mode, access rights, algorithms and more.
Public method GetKeySettings() Reads key settings of the selected application.
Public method GetUID()
Public method GetValue(int, ref int) Gets value.
Public method GetVersion() Reads DESFire card GetVersion() returns manufacturing data.
Public method Read(int, int, int) Reads card data.
Public method SelectApplication(int) Selects an application on a DESFire card.
Public method Write(int, byte[], int, int) Writes data to the card.
Top

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0