private void LoadKeyCommand(ISecureChannel session, string description, byte keySlot, LoadKeyCommand.KeyType keyType, LoadKeyCommand.Persistence persistence, LoadKeyCommand.Transmission transmission, LoadKeyCommand.KeyLength keyLength, string key) { var loadKeyCommand = new Readers.AViatoR.Components.LoadKeyCommand(); string input = loadKeyCommand.GetApdu(keySlot, keyType, persistence, transmission, keyLength, key); string output = session.SendCommand(input); ConsoleWriter.Instance.PrintCommand(description + key, input, output); }
private void LoadKeyCommand(ISmartCardReader smartCardReader, byte keySlot, LoadKeyCommand.KeyType keyType, LoadKeyCommand.Persistence persistence, LoadKeyCommand.Transmission transmission, LoadKeyCommand.KeyLength keyLength, string key) { var loadKeyCommand = new Readers.AViatoR.Components.LoadKeyCommand(); string input = loadKeyCommand.GetApdu(keySlot, keyType, persistence, transmission, keyLength, key); string output = ReaderHelper.SendCommand(smartCardReader, input); //ConsoleWriter.Instance.PrintCommand(description + key, input, output); Console.WriteLine($"input {input} Load Key Output: {output} Key: {key}"); MifareOutput = output; MifareAPDU = input; }