/**
  *
  * <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();
 }
Beispiel #2
0
 /**
  *
  * <param name="y"/>
  * <param name="params"/>
  */
 public PublicKey(BigInteger y, Parameter parameter)
     : base(false, parameter)
 {
     this.y = y;
 }
Beispiel #3
0
 /**
  *
  * <param name="x"/>
  * <param name="params"/>
  */
 public PrivateKey(BigInteger x, Parameter parameter)
     : base(true, parameter)
 {
     this.x = x;
 }
Beispiel #4
0
 /**
  *
  * <param name="isPrivate"/>
  * <param name="params"/>
  */
 protected Key(bool isPrivate, Parameter parameter)
 {
     this.privateKey = isPrivate;
     this.parameter = parameter;
 }