public static void UpdateBinaryCommand(ISecureChannel secureChannel, string description, UpdateBinaryCommand.Type type, byte blockNumber, string data) { var updateBinaryCommand = new UpdateBinaryCommand(); string input = updateBinaryCommand.GetApdu(Readers.AViatoR.Components.UpdateBinaryCommand.Type.Plain, blockNumber, data); string output = secureChannel.SendCommand(input); ConsoleWriter.Instance.PrintCommand(description + "0x" + blockNumber.ToString("X2"), input, output); }
public static void UpdateBinaryCommand(ISecureChannel secureChannel, string description, UpdateBinaryCommand.Type type, byte blockNumber, string data) { var updateBinaryCommand = new UpdateBinaryCommand(); string input = updateBinaryCommand.GetApdu(Readers.AViatoR.Components.UpdateBinaryCommand.Type.Plain, blockNumber, data); string output = secureChannel.SendCommand(input); Console.WriteLine($"0x{blockNumber.ToString("X2")} Input: {input} Output: {output}"); }
void SendUpdateBinaryCommand(ISmartCardReader smartCardReader, UpdateBinaryCommand.Type type, byte blockNumber, string data) { ConsoleWriter.Instance.PrintMessage($"Update Binary NXP iCode card, block number: 0x{blockNumber:X2}, with data :{data}"); var updateBinary = new UpdateBinaryCommand(); string input = updateBinary.GetApdu(type, blockNumber, data); var output = smartCardReader.Transmit(input); ConsoleWriter.Instance.PrintCommand(string.Empty, input, output); }
public static void UpdateBinaryCommand(ISmartCardReader smartCardReader, UpdateBinaryCommand.Type type, byte blockNumber, string data) { var updateBinaryCommand = new UpdateBinaryCommand(); string input = updateBinaryCommand.GetApdu(Readers.AViatoR.Components.UpdateBinaryCommand.Type.Plain, blockNumber, data); string output = smartCardReader.Transmit(input); Console.WriteLine($"0x{blockNumber.ToString("X2")} Input: {input} Output: {output}"); }