Constructs a card selector object which compares the card atr to atr
specified within constructor. A card is accepted if cardatr[i] XOR atr[i] AND mask[i] = 0.
Or in other words to ignore some bytes within card atr set mask for this bytes
to 0, otherwise set mask for this byte to 255 (FFh)
Namespace: BasicCard.GenericCardsAssembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)
Syntax
C# |
---|
public AtrCardSelector(
byte[] atr,
byte[] mask
) |
Visual Basic |
---|
Public Sub New (
atr As Byte(),
mask As Byte()
) |
Visual C++ |
---|
public:
AtrCardSelector(
array<unsigned char>^ atr,
array<unsigned char>^ mask
) |
F# |
---|
new :
atr : byte[] *
mask : byte[] -> AtrCardSelector |
Parameters
- atr
- Type: array<System..::..Byte>[]()[][]
ATR to compare with.
- mask
- Type: array<System..::..Byte>[]()[][]
Mask to specify which ATR bytes must be compared (can be null/nothing)
See Also