DESFire Key Settings helper method for crypto method and number of keys. Use the ToByte() method to generate a byte value that is compatible with keysettings2 parameter of CreateFile() method.

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

Public Class DESFireKeySettings
This language is not supported or no code example is available.
public class DESFireKeySettings
This language is not supported or no code example is available.
public ref class DESFireKeySettings 
This language is not supported or no code example is available.
public class DESFireKeySettings
This language is not supported or no code example is available.
Name Description
Public constructor DESFireKeySettings(bool) Constructor.
Public constructor DESFireKeySettings(byte) Constructor.
Top
Name Description
Public method EnableIsoSelect(bool) Enables 2-byte ISO select of any file under control of this application (EF and DF)
Public method SetCryptoMethod(byte) Sets crypto method. accepted values: CRM_3DES_DF4, CRM_3K3DES, and CRM_AES.
Public method SetNumberOfApplicationKeys(int) To set the mumber of keys controlled by an application. Acccepted values: {0,1,2 .. 14}
Public method ToByte() Converts this object to a byte. This format reflects the keysettings2 value that's required to create files on a DESFire 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