Pn5180.MifareAuthenticate Method

Definition

Overloads

MifareAuthenticate(ReadOnlySpan<Byte>, MifareCardCommand, Byte, ReadOnlySpan<Byte>)

Specific function to authenticate Mifare cards

MifareAuthenticate(Span<Byte>, MifareCardCommand, Byte, Span<Byte>)

Specific function to authenticate Mifare cards

MifareAuthenticate(ReadOnlySpan<Byte>, MifareCardCommand, Byte, ReadOnlySpan<Byte>)

Specific function to authenticate Mifare cards

public bool MifareAuthenticate (ReadOnlySpan<byte> key, Iot.Device.Card.Mifare.MifareCardCommand mifareCommand, byte blockAddress, ReadOnlySpan<byte> cardUid);
member this.MifareAuthenticate : ReadOnlySpan<byte> * Iot.Device.Card.Mifare.MifareCardCommand * byte * ReadOnlySpan<byte> -> bool
Public Function MifareAuthenticate (key As ReadOnlySpan(Of Byte), mifareCommand As MifareCardCommand, blockAddress As Byte, cardUid As ReadOnlySpan(Of Byte)) As Boolean

Parameters

key
ReadOnlySpan<Byte>

A 6 bytes key

mifareCommand
MifareCardCommand

MifareCardCommand.AuthenticationA or MifareCardCommand.AuthenticationB

blockAddress
Byte

The block address to authenticate

cardUid
ReadOnlySpan<Byte>

The 4 bytes UUID of the card

Returns

True if success

Applies to

MifareAuthenticate(Span<Byte>, MifareCardCommand, Byte, Span<Byte>)

Specific function to authenticate Mifare cards

public bool MifareAuthenticate (Span<byte> key, Iot.Device.Card.Mifare.MifareCardCommand mifareCommand, byte blockAddress, Span<byte> cardUid);
member this.MifareAuthenticate : Span<byte> * Iot.Device.Card.Mifare.MifareCardCommand * byte * Span<byte> -> bool
Public Function MifareAuthenticate (key As Span(Of Byte), mifareCommand As MifareCardCommand, blockAddress As Byte, cardUid As Span(Of Byte)) As Boolean

Parameters

key
Span<Byte>

A 6 bytes key

mifareCommand
MifareCardCommand

MifareCardCommand.AuthenticationA or MifareCardCommand.AuthenticationB

blockAddress
Byte

The block address to authenticate

cardUid
Span<Byte>

The 4 bytes UUID of the card

Returns

True if success

Applies to