Пример #1
0
 public KeyGenThread(KeyGenForm p, PublicKeyAlgorithm a, Int32 b)
 {
     this._parent = p;
     this._algorithm = a;
     this._bits = b;
     this._rnd = new KeyGenRandomGenerator();
 }
Пример #2
0
 public KeyGenThread(KeyGenForm p, PublicKeyAlgorithm a, Int32 b)
 {
     this._parent    = p;
     this._algorithm = a;
     this._bits      = b;
     this._rnd       = new KeyGenRandomGenerator();
 }
Пример #3
0
        private void GenerateSSH2Key()
        {
            KeyGenForm dlg = new KeyGenForm {
                KeyTag = this.comboBoxKey.Text
            };

            dlg.ShowDialog();
            if (dlg.Key != null)
            {
                string tag = dlg.KeyTag;
                int    i   = this.comboBoxKey.FindString(tag);
                if (i >= 0)
                {
                    this.comboBoxKey.SelectedIndex = i;
                }
                else
                {
                    this.keysSection.AddKey(tag, dlg.Key.toBase64String());
                    this.comboBoxKey.Items.Add(tag);
                    this.comboBoxKey.SelectedIndex = this.comboBoxKey.FindString(tag);
                }
            }
        }
Пример #4
0
 private void GenerateSSH2Key()
 {
     KeyGenForm dlg = new KeyGenForm {KeyTag = this.comboBoxKey.Text};
     dlg.ShowDialog();
     if (dlg.Key != null)
     {
         string tag = dlg.KeyTag;
         int i = this.comboBoxKey.FindString(tag);
         if (i >= 0)
         {
             this.comboBoxKey.SelectedIndex = i;
         }
         else
         {
             this.keysSection.AddKey(tag, dlg.Key.toBase64String());
             this.comboBoxKey.Items.Add(tag);
             this.comboBoxKey.SelectedIndex = this.comboBoxKey.FindString(tag);
         }
     }
 }