public KeyGenThread(KeyGenForm p, PublicKeyAlgorithm a, Int32 b) { _parent = p; _algorithm = a; _bits = b; _rnd = new KeyGenRandomGenerator(); }
void GenerateSSH2Key() { KeyGenForm dlg = new KeyGenForm(); dlg.KeyTag = comboBoxKey.Text; dlg.ShowDialog(); if (dlg.Key != null) { string tag = dlg.KeyTag; int i = comboBoxKey.FindString(tag); if (i >= 0) { comboBoxKey.SelectedIndex = i; } else { keysSection.AddKey(tag, dlg.Key.toBase64String()); comboBoxKey.Items.Add(tag); comboBoxKey.SelectedIndex = comboBoxKey.FindString(tag); } } }
void GenerateSSH2Key() { KeyGenForm dlg = new KeyGenForm(); dlg.KeyTag = comboBoxKey.Text; dlg.ShowDialog(); if(dlg.Key != null) { string tag = dlg.KeyTag; int i = comboBoxKey.FindString(tag); if(i>=0) { comboBoxKey.SelectedIndex = i; } else { keysSection.AddKey(tag, dlg.Key.toBase64String()); comboBoxKey.Items.Add(tag); comboBoxKey.SelectedIndex = comboBoxKey.FindString(tag); } } }