Пример #1
0
 private void Generate()
 {
     int minQ = (int)sbMinQ.Value;
     int maxQ = (int)sbMaxQ.Value;
     Domain = DomainParameters.GenerateDomainParameters(minQ, maxQ);
     generator = new DSAKeyGenerator(Domain);
     PrivateKey = generator.PrivateKey;
     PublicKey = generator.PublicKey;
 }
Пример #2
0
        private void Generate()
        {
            int minQ = (int)sbMinQ.Value;
            int maxQ = (int)sbMaxQ.Value;

            Domain     = DomainParameters.GenerateDomainParameters(minQ, maxQ);
            generator  = new DSAKeyGenerator(Domain);
            PrivateKey = generator.PrivateKey;
            PublicKey  = generator.PublicKey;
        }