|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.crypto.ElGamalParameterSpec
public class ElGamalParameterSpec
Copied from org.bouncycastle.jce.spec This can't actually be passed to the BC provider, we would have to use reflection to create a "real" org.bouncycasle.jce.spec.ElGamalParameterSpec.
Constructor Summary | |
---|---|
ElGamalParameterSpec(BigInteger p,
BigInteger g)
Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g . |
Method Summary | |
---|---|
BigInteger |
getG()
Returns the base generator g . |
BigInteger |
getP()
Returns the prime modulus p . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElGamalParameterSpec(BigInteger p, BigInteger g)
p
and a base generator g
.
p
- the prime modulusg
- the base generatorMethod Detail |
---|
public BigInteger getP()
p
.
p
public BigInteger getG()
g
.
g
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |