예제 #1
0
 /**
  *
  * <param name="random"/>
  * <param name="params"/>
  */
 public KeyPairGenerator(Random random, Parameter parameter)
 {
     this.parameter = parameter;
     this.random = random;
     this.strength = parameter.P.bitCount() - 1;
     this.generateKeyPair();
 }
예제 #2
0
 /**
  *
  * <param name="y"/>
  * <param name="params"/>
  */
 public PublicKey(BigInteger y, Parameter parameter)
     : base(false, parameter)
 {
     this.y = y;
 }
예제 #3
0
 /**
  *
  * <param name="x"/>
  * <param name="params"/>
  */
 public PrivateKey(BigInteger x, Parameter parameter)
     : base(true, parameter)
 {
     this.x = x;
 }
예제 #4
0
 /**
  *
  * <param name="isPrivate"/>
  * <param name="params"/>
  */
 protected Key(bool isPrivate, Parameter parameter)
 {
     this.privateKey = isPrivate;
     this.parameter = parameter;
 }