public HostKey(string host, byte[] key) { m_host = host; m_key = key; if (key[8] == 'd') m_type = HostKeyTypes.SSHDSS; else if (key[8] == 'r') m_type = HostKeyTypes.SSHRSA; else throw new JSchException("Invalid key type"); }
internal HostKey(string host, HostKeyTypes type, byte[] key) { m_host = host; m_type = type; m_key = key; }