Package net.i2p.crypto.elgamal.spec
Class ElGamalParameterSpec
java.lang.Object
net.i2p.crypto.elgamal.spec.ElGamalParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
public class ElGamalParameterSpec extends Object implements AlgorithmParameterSpec
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.
- Since:
- 0.9.18, moved from net.i2p.crypto in 0.9.25
-
Constructor Summary
Constructors Constructor Description ElGamalParameterSpec(BigInteger p, BigInteger g)Constructs a parameter set for Diffie-Hellman, using a prime moduluspand a base generatorg. -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)BigIntegergetG()Returns the base generatorg.BigIntegergetP()Returns the prime modulusp.inthashCode()
-
Constructor Details
-
ElGamalParameterSpec
Constructs a parameter set for Diffie-Hellman, using a prime moduluspand a base generatorg.- Parameters:
p- the prime modulusg- the base generator
-
-
Method Details