Exemplo n.º 1
0
 public static DialogResult GetKeys(ref advRSA rsa)
 {
     using (var frm = new frmKeyDialog()) {
         frm.ShowDialog();
         if (frm.result == DialogResult.OK)
         {
             rsa.E = BigInteger.Parse(frm.txtE.Text);
             rsa.D = BigInteger.Parse(frm.txtD.Text);
             rsa.N = BigInteger.Parse(frm.txtN.Text);
         }
         return(frm.result);
     }
 }
Exemplo n.º 2
0
 public static DialogResult GetKeys(ref BigInteger E, ref BigInteger D, ref BigInteger N)
 {
     using (var frm = new frmKeyDialog()) {
         frm.ShowDialog();
         if (frm.result == DialogResult.OK)
         {
             E = BigInteger.Parse(frm.txtE.Text);
             D = BigInteger.Parse(frm.txtD.Text);
             N = BigInteger.Parse(frm.txtN.Text);
         }
         return(frm.result);
     }
 }