Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CentralAuthority"/> class.
 /// </summary>
 /// <param name="protocol">The protocol.</param>
 public CentralAuthority(CAKeyProtocol protocol)
 {
     _bits  = (int)protocol;
     _prime = BigInteger.GenPseudoPrime(_bits, Confidence, _rand);
     _g     = (BigInteger)7;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CentralAuthority"/> class.
 /// </summary>
 /// <param name="protocol">The protocol.</param>
 public CentralAuthority(CAKeyProtocol protocol)
 {
     _bits = (int)protocol;
     _prime = BigInteger.GenPseudoPrime(_bits, Confidence, _rand);
     _g = (BigInteger)7;
 }