示例#1
0
文件: HostKey.cs 项目: x893/SharpSSH
 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");
 }
示例#2
0
文件: HostKey.cs 项目: x893/SharpSSH
 internal HostKey(string host, HostKeyTypes type, byte[] key)
 {
     m_host = host;
     m_type = type;
     m_key = key;
 }