Example #1
0
        private void btnGenerateSchnorr_Click(object sender, EventArgs e)
        {
            domain  = DomainParameters.GenerateDomainParameters(100000, 999999);
            schnorr = new Schnorr(domain);

            tbP.Text = domain.P.ToString();
            tbQ.Text = domain.Q.ToString();
            tbH.Text = domain.H.ToString();
            tbG.Text = domain.G.ToString();
            tbT.Text = schnorr.T.ToString();

            ResetForm();
        }
Example #2
0
        private void btnGenerateSchnorr_Click(object sender, EventArgs e)
        {
            domain = DomainParameters.GenerateDomainParameters(100000, 999999);
            schnorr = new Schnorr(domain);

            tbP.Text = domain.P.ToString();
            tbQ.Text = domain.Q.ToString();
            tbH.Text = domain.H.ToString();
            tbG.Text = domain.G.ToString();
            tbT.Text = schnorr.T.ToString();

            ResetForm();
        }
Example #3
0
 public SchorrProver(Schnorr schorrParameters)
 {
     Domain  = schorrParameters.Domain;
     numbers = new RandomNumberGenerator();
 }
Example #4
0
 public SchorrVerifier(Schnorr schorrParameters)
 {
     Domain  = schorrParameters.Domain;
     T       = schorrParameters.T;
     numbers = new RandomNumberGenerator();
 }
Example #5
0
 public SchorrProver(Schnorr schorrParameters)
 {
     Domain = schorrParameters.Domain;
     numbers = new RandomNumberGenerator();
 }
Example #6
0
 public SchorrVerifier(Schnorr schorrParameters)
 {
     Domain = schorrParameters.Domain;
     T = schorrParameters.T;
     numbers = new RandomNumberGenerator();
 }