public static void ReadBinaryMifareCommand(ISmartCardReader smartCardReader, string description, byte blockNumber, byte expectedlength) { var readBinaryCommand = new Readers.AViatoR.Components.ReadBinaryCommand(); string input = readBinaryCommand.GetMifareReadApdu(blockNumber, expectedlength); string output = smartCardReader.Transmit(input); ConsoleWriter.Instance.PrintCommand(description + "0x" + blockNumber.ToString("X2"), input, output); }
public static void ReadBinaryiClassCommand(ISecureChannel secureChannel, string description, ReadBinaryCommand.ReadOption readOption, byte blockNumber, byte expectedlength, BookNumber book = BookNumber.Book0, PageNumber page = PageNumber.Page0) { var readBinaryCommand = new Readers.AViatoR.Components.ReadBinaryCommand(); string input = readBinaryCommand.GetiClassReadApdu(readOption, blockNumber, expectedlength, book, page); string output = secureChannel.SendCommand(input); ConsoleWriter.Instance.PrintCommand(description + "0x" + blockNumber.ToString("X2"), input, output); }