Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
 internal HostKey(string host, HostKeyTypes type, byte[] key)
 {
     m_host = host;
     m_type = type;
     m_key = key;
 }