public KeyGenThread(KeyGenForm p, PublicKeyAlgorithm a, Int32 b) { this._parent = p; this._algorithm = a; this._bits = b; this._rnd = new KeyGenRandomGenerator(); }
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); } } }
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); } } }