Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.jce.spec;
 public class ElGamalParameterSpec
     implements AlgorithmParameterSpec
     private BigInteger  p;
    private BigInteger  g;

Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g.

p the prime modulus
g the base generator
    public ElGamalParameterSpec(
        BigInteger  p,
        BigInteger  g)
        this. = p;
        this. = g;

Returns the prime modulus p.

the prime modulus p
    public BigInteger getP()
        return ;

Returns the base generator g.

the base generator g
    public BigInteger getG()
        return ;
New to GrepCode? Check out our FAQ X