Full authentication sequence according to NXP DESFire EV1 specifications.

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

Public Function AuthenticateAES( _ 
ByVal cardKeyNumber As Integer, _ 
ByVal authenticationKey As Byte() _ 
) As Boolean
This language is not supported or no code example is available.
public bool AuthenticateAES( 
int cardKeyNumber
byte[] authenticationKey 
)
This language is not supported or no code example is available.
public:  
bool AuthenticateAES( 
int cardKeyNumber
array< Byte >^ authenticationKey 
)
This language is not supported or no code example is available.
public function AuthenticateAES( 
cardKeyNumber : int
authenticationKey : byte[] 
) : boolean;
This language is not supported or no code example is available.

Parameters

cardKeyNumber
Type: int

.

authenticationKey
Type: byte[]

16 byte AES 128 key.

Return Value

Type: bool

True if it succeeds, false if it fails.

Exception type Condition

ApplicationException

Thrown when an Application error condition occurs.

ArgumentNullException

Thrown when one or more required arguments are null.

.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