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(); }
public Schnorr(DomainParameters domain) { numbers = new RandomNumberGenerator(); Domain = domain; T = GenerateT(); }