FileDocCategorySizeDatePackage
ElGamalParameterSpec.javaAPI DocAzureus 3.0.3.4968Tue Jun 08 05:12:56 BST 2004org.bouncycastle.jce.spec

ElGamalParameterSpec

public class ElGamalParameterSpec extends Object implements AlgorithmParameterSpec

Fields Summary
private BigInteger
p
private BigInteger
g
Constructors Summary
public ElGamalParameterSpec(BigInteger p, BigInteger g)
Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g.

param
p the prime modulus
param
g the base generator

        this.p = p;
        this.g = g;
    
Methods Summary
public java.math.BigIntegergetG()
Returns the base generator g.

return
the base generator g

        return g;
    
public java.math.BigIntegergetP()
Returns the prime modulus p.

return
the prime modulus p

        return p;