Top Fields Constructors Methods
org.bouncycastle.jce.spec

public Class ElGamalParameterSpec

extends Object
implements AlgorithmParameterSpec
Class Inheritance
All Implemented Interfaces
java.security.spec.AlgorithmParameterSpec
Imports
java.math.BigInteger, java.security.spec.AlgorithmParameterSpec

Field Summary

Modifier and TypeField and Description
private BigInteger
g

private BigInteger
p

Constructor Summary

AccessConstructor and Description
public
ElGamalParameterSpec(BigInteger
the prime modulus
p
,
BigInteger
the base generator
g
)

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

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

the base generator g
getG
()

Returns the base generator g.

public BigInteger

Returns:

the prime modulus p
getP
()

Returns the prime modulus p.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gback to summary
private BigInteger g
pback to summary
private BigInteger p

Constructor Detail

ElGamalParameterSpecback to summary
public ElGamalParameterSpec(BigInteger p, BigInteger g)

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

Parameters
p:BigInteger

the prime modulus

g:BigInteger

the base generator

Method Detail

getGback to summary
public BigInteger getG()

Returns the base generator g.

Returns:BigInteger

the base generator g

getPback to summary
public BigInteger getP()

Returns the prime modulus p.

Returns:BigInteger

the prime modulus p