예제 #1
0
        private void Button1Click(object sender, RoutedEventArgs e)
        {
            domain  = DomainParameters.GenerateDomainParameters(1, 999999);
            schnorr = new Schnorr(domain);

            P.Text = domain.P.ToString();
            Q.Text = domain.Q.ToString();
            H.Text = domain.H.ToString();
            G.Text = domain.G.ToString();
            T.Text = schnorr.T.ToString();

            ResetForm();
        }
예제 #2
0
 public Schnorr(DomainParameters domain)
 {
     numbers = new RandomNumberGenerator();
     Domain  = domain;
     T       = GenerateT();
 }