Esempio n. 1
0
 public KeyGenThread(KeyGenWizard p, PublicKeyAlgorithm a, int b)
 {
     _parent = p;
     _algorithm = a;
     _bitCount = b;
     _rnd = new KeyGenRandomGenerator();
 }
Esempio n. 2
0
 public KeyGenThread(KeyGenWizard p, PublicKeyAlgorithm a, int b)
 {
     _parent    = p;
     _algorithm = a;
     _bitCount  = b;
     _rnd       = new KeyGenRandomGenerator();
 }
Esempio n. 3
0
        private static CommandResult CmdGenerateKeyPair(ICommandTarget target)
        {
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
            Debug.Assert(window != null);

            KeyGenWizard dlg = new KeyGenWizard();
            DialogResult r = dlg.ShowDialog(window.AsForm());
            return r == DialogResult.OK ? CommandResult.Succeeded : CommandResult.Cancelled;
        }
 public CommandResult ShowKeyGenWizard()
 {
     KeyGenWizard dlg = new KeyGenWizard();
     GCUtil.ShowModalDialog(_frame, dlg);
     return CommandResult.Success;
 }