private ResponseAPDU SendCommand(BeIDCommandAPDU command, int p1, int p2, int le) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var commandAdpu = new CommandAPDU(command.Cla, command.Ins, p1, p2, le); return(Transmit(commandAdpu, BUFFER_SIZE)); }
private ResponseAPDU SendCommand(BeIDCommandAPDU command, byte[] data) { if (command == null) { throw new ArgumentNullException(nameof(command)); } if (data == null) { throw new ArgumentNullException(nameof(data)); } var commandAdpu = new CommandAPDU(command.Cla, command.Ins, command.P1, command.P2, data); return(Transmit(commandAdpu, BUFFER_SIZE)); }