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