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();
        }
Exemple #2
0
 public SchorrVerifier(Schnorr schorrParameters)
 {
     Domain  = schorrParameters.Domain;
     T       = schorrParameters.T;
     numbers = new RandomNumberGenerator();
 }
Exemple #3
0
 public SchorrProver(Schnorr schorrParameters)
 {
     Domain  = schorrParameters.Domain;
     numbers = new RandomNumberGenerator();
 }